openSUSE's python-virtualenv rpm depends on the python-pip rpm, but
tools/install_pip.sh prefers to deinstall the latter (if installed) and
install pip directly from upstream source instead.
This deinstallation of python-pip will break if attempted via rpm -e,
since rpm does not transitively remove dependents (in this case
python-virtualenv). In contrast, "zypper rm" does, so we switch to
that.
It is safe to remove the python-virtualenv package, since stack.sh will
install virtualenv via pip instead.
Change-Id: I5bc23de0f2de2e3940c4be3b76b7c0634836239b
On openSUSE, ensure that the ca-certificates-mozilla package is
installed to avoid curl aborting with
curl: (60) SSL certificate problem: unable to get local issuer certificate
when trying to download the pip source tarball.
Change-Id: Iaf74204ea5330e9abf56f6c9d5a0f9d83992aa59
Install a known working recent version of pip that handles installation
dependencies more correctly than before. Extract to a separate script
so it can be used apart from stack.sh.
* Install distro setuptools if it not already present
* Install pip from source tarball as get-pip.py proved to be unreliable
* Remove python-distribute and python-pip from all prereq files,
move python-setuptools to 'general'
* Remove the earlier unfubar_setuptppls() call that attenpted to fix this
* Only update requirements.txt when no changes in repo
Tested on Precise, F18 and CentOS6.
* Fedora and RHEL allow pip to install packages ON TOP OF RPM-installed
packages. THIS IS BROKEN. And is one reason we have to be so picky
about order and so forth.
Change-Id: Ibb4b42119dc2e51577c77bbbbffb110863e5324d
We have migrated to flake8 and most distros don't have the version of
pep8 that flake8 (and hacking) use. Instead of installing pep8 from
packages it should be installed from pip
Change-Id: I86e4f8316f3cdc27303bfd039a78c0d6202ce321
Nova and Keystone use openssl to setup certificates. If it's not
there then Keystone fails with "Error 2: No such file or directory",
Nova fails with "openssl: command not found" and glance fails with
"glance: error: argument --os-auth-token: expected one argument"
Basically, cascading errors everywhere. So I put the dependency
in "general" since it affects multiple packages.
Fixes bug 1152315
Change-Id: I803f91644443d7aba78c0a90384e32f6eece36ec