37 Commits

Author SHA1 Message Date
Adrian Smith
dbbd6cf107 Use system M2Crypto package on Oneiric, bug 892271
Ubuntu Oneiric has a problem with the pip installed version of m2crypto.
This fix installs python-m2crypto via apt-get on Oneiric.

Change-Id: I8290a74b614eb0d0b8d620dbad19d2cc6843de8b
2011-12-06 19:45:21 +00:00
Mark McLoughlin
b0ad7284aa install_venv: apply eventlet patch correctly with python 2.7 (#890461)
Looks like the fix for #884915 only works with RHEL6. Make it work
correctly on Fedora 16.

Change-Id: I8c996f20d49db688fd8e692bcd836dee693d362a
2011-11-15 08:43:46 +00:00
Lorin Hochstein
9175822ffe Workaround for eventlet bug with unit tests in RHEL6.1.
This adds a patch to fix the broken eventlet code that's installed in the
virtualenv.

Fixes bug 884915

Change-Id: I6dbf755abbc5a52208de3dd892257ce39686d396
2011-11-09 14:54:16 -05:00
Lorin Hochstein
e42fe8565c Apply M2Crypto fix for all Fedora-based distributions.
Broaden Fedora check to include RHEL and others.

Fixes bug 884885

Change-Id: Ifab330a7f866add91d01c8cf2470e5a12fb4cd4d
2011-11-09 14:54:16 -05:00
Lorin Hochstein
b08bd96ce5 Optional --no-site-packages in venv
Added a flag to run_tests.sh to allow user to optionally install venv with --no-site-packages.

This fixes bug 880905

Change-Id: Ic645e0ec56c90b72fef526ebc9f55975d446e2ae
2011-10-30 11:06:10 -04:00
Mark McLoughlin
c00cfc642a venv: update distribute as well as pip
When you create a virtualenv, pip and setuptools/distribute is
installed.

When we later run install_venv.py to update the venv, we should
be sure to grab the latest versions of pip and distribute otherwise
issues like this one are masked:

  http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=131

Change-Id: Id206be478ea6c5216dcee6f2f58dc91858c843f5
2011-10-25 14:39:12 +01:00
Monty Taylor
3c6ce70a51 Upgrade pip in the venv when we build it.
Change-Id: I924975170c9e3a1ef23b5195cb3a6eed675ec043
2011-10-19 18:03:51 -04:00
Mark McLoughlin
6c97436656 install_venv: pip install M2Crypto doesn't work on Fedora
... so use the system m2crypto library instead.

M2Crypto won't build on Fedora because of some bizarre differences with
Fedora's OpenSSL headers. I can get it to build by doing e.g.

 $> python ./tools/install_venv.py
 $> cd .nova-venv/build/M2Crypto
 $> for i in SWIG/_ec.i SWIG/_evp.i; do sed -i -e "s/opensslconf/opensslconf-x86_64/" $i ; done
 $> cd -
 $> SWIG_FEATURES=-cpperraswarn ./tools/with_venv.sh pip install M2Crypto

but that's clearly no fun. It should be fine to just use the system
version.

Change-Id: I94c7464bf60ae586e16a2f38b7440cea8dc110e5
2011-09-29 16:08:04 +01:00
Mark McLoughlin
9f529afd47 install_venv: add support for distro specific code
... and use it to install virtualenv with yum if it's not available.

Change-Id: Ibfeeb9c23324724bc26895504e6229076d793c6d
2011-09-29 16:08:00 +01:00
Mark McLoughlin
7eeee584ad install_venv: don't use --no-site-packages with virtualenv
libvirt isn't listed in pip-requires because (a) it's not in PyPi and
(b) you always want to use libvirt's python bindings that matches the
version of libvirt installed on the system.

Currently, running nova-compute in virtualenv fails because libvirt
can't be imported. The --no-site-packages flag is what prevents this.
Everything seems to work fine without it. To verify, try deleting the
no-global-site-packages.txt from your .nova-venv.

Change-Id: I1df5e8e3c4426ca333c2d6b5b4fa8ece144dddf3
2011-09-29 16:07:45 +01:00
Mark McLoughlin
f373a0f6f8 install_venv: pass the --upgrade argument to pip install
Subsequent runs of install_venv.sh should upgrade packages to the
latest available.

Change-Id: Ib9c9ee270b778363900d92398f00c1cab3508578
2011-09-29 16:07:39 +01:00
Mark McLoughlin
de5e6ea29e install_venv: refactor out pip_install helper
We don't need to pass the -E argument since we're already running
inside the virtualenv.

Change-Id: Idd77b9bdc067e2288d0fa694a2bb6769675065cf
2011-09-29 16:07:23 +01:00
Brian Waldon
07646e8584 removing compute monitor 2011-08-02 10:09:58 -04:00
William Wolf
8b716bc23a fix pep8 issues 2011-06-01 10:37:54 -04:00
Justin Shepherd
ea3b85bc27 Fixed all pep8 errors in tools/install_venv.py. All tests pass. 2011-05-16 11:16:55 -05:00
William Wolf
1330241020 fixed pep8 spacing issue 2011-05-12 09:19:01 -04:00
William Wolf
f99c5f60d2 got rid of extra whitespace 2011-05-02 16:58:06 -04:00
William Wolf
221a756550 Update tools/pip-requires and tools/install_venv.py for python2.7 support (works in ubuntu 11.04) 2011-05-02 16:55:54 -04:00
John Tran
d137ffdc2f Add a patch for python eventlet, when using install_venv.py (see FAQ # 1485) 2011-04-05 18:35:15 -07:00
Lorin Hochstein
4c66b2bb2a Now tries to install virtualenv via easy_install if not present 2011-01-11 13:11:30 -05:00
Monty Taylor
cda407fa0e A small fix to the install_venv program to allow us to run it on the tarmac box as part of the tarmac build. 2010-09-20 13:40:42 +00:00
Michael Gundlach
90ca9b3739 Fix a pep8 violation. 2010-08-25 17:36:03 +00:00
Monty Taylor
7f666230e3 A few small changes to install_venv to let venv builds work on the tarmac box. 2010-08-25 16:45:59 +00:00
Justin Santa Barbara
7e403e3816 Fix to better reflect (my believed intent) as to the meaning of error_ok (ignore stderr vs accept failure) 2010-08-18 22:19:39 +01:00
Justin Santa Barbara
d8f8d121a0 Merged with trunk 2010-08-18 22:14:24 +01:00
Michael Gundlach
ad3bda4b1a pep8 typo 2010-08-18 11:53:41 -04:00
Michael Gundlach
23e9600fc6 Fix pep8 violation 2010-08-18 10:09:11 -04:00
Michael Gundlach
9878a6b8b4 Simpler installation, and, can run install_venv from anywhere instead of just from checkout root 2010-08-17 11:03:15 -04:00
jaypipes@gmail.com
49e5701d23 Changes the run_tests.sh and /tools/install_venv.py scripts to be
more user-friendly and not depend on PIP while not in the virtual
environment.
2010-08-11 02:02:17 +00:00
jaypipes@gmail.com
f5695429db Quick fix on location of printouts when trying to install virtualenv. 2010-08-10 12:51:03 -04:00
jaypipes@gmail.com
8c7558ed5a Changes the run_tests.sh and /tools/install_venv.py scripts to be more user-friendly and not depend on PIP while not in the virtual environment. Running run_tests.sh should not just work out of the box on all systems supporting easy_install... 2010-08-10 12:44:38 -04:00
Michael Gundlach
09b5be11e7 Run correctly even if called while in tools/ directory, as 'python install_venv.py' 2010-08-09 17:45:00 -04:00
Justin Santa Barbara
0ee7d2f74a Greater compliance with pep8/pylint style checks 2010-08-08 12:57:33 -07:00
Justin Santa Barbara
3897047a2c Added exit code checking to process.py (twisted process utils). A bit of class refactoring to make it work & cleaner.
Also added some more instructive messages to install_venv.py, because otherwise people that don't know what they're doing will install the wrong pip... i.e. I did :-)
2010-07-30 12:05:32 -07:00
Paul Voccio
4199dab2e7 resolving conflict w/ merge, cleaning up virtenv setups 2010-07-26 23:23:44 -05:00
Vishvananda Ishaya
4373ca830f Fixes to the virtualenv installer 2010-07-26 18:57:24 -07:00
andy
6d3331e831 Move virtualenv installation out of the makefile.
Also adds some tools for dealing with virtualenvs to the tools
directory.
2010-07-26 23:16:49 +02:00