summaryrefslogtreecommitdiffstats
path: root/tools/install_venv_common.py
Commit message (Collapse)AuthorAgeFilesLines
* Stop using distribute in install_venv_commonMonty Taylor2013-07-051-26/+16
| | | | | | | | | | | | | Upstream distribute is dead and has been merged back into setuptools. Additionally, enhancements have been made to both setuptools and pip that mean we no longer have to carry hacks around versions. Also, we don't need to install greenlet here. Order is respected in requirements.txt. Also, let's kill the pip_requires verbage. Change-Id: Ia15c66d6a03522e804ff96fd6f8d81db00467a6e
* Update eventlet bug URL.James E. Blair2013-05-131-1/+2
| | | | | | | The eventlet repository has moved, so the bug url referenced in the comment about why we patch eventlet needs to be updated. Change-Id: I55abe0b6eb4c8e21fad15a10d6ec71d3b5a59e54
* Improve python3 compatibilityChuck Short2013-05-021-10/+12
| | | | | | | | Change print statements so that it works with python3 as well. Change-Id: Iff16b62e4b875c79862c9af7726ea77627aa7b4f Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Use optparse for install_venv_commonRick Harris2013-05-011-7/+10
| | | | | | | | | In order to bootstrap a virtualenv from an unmodified 2.6 Python environment, we need to use optparse instead of argparse or openstack.common.cfg. Fixes bug 1174926 Change-Id: Iad636c7adf7b184756eeba5ca760d8a76fc0e354
* Avoid calling sudo in install_venv_common.py.Dan Prince2013-04-231-6/+2
| | | | | | | | | | | | Updates our common venv installation routine so that it no longer attempts to automatically install missing RPM packages via sudo and instead just prints an error message and dies. The primary motivation here was to avoid sudo altogether since some people would rather not have the test suite run these sorts of systems admin commands for them. Change-Id: I350e5421a4dd3094217270d39547acaea0aeda3b
* update OpenStack, LLC to OpenStack FoundationMark McClain2013-03-131-1/+1
| | | | | | | | | | fixes bug 1154745 The previous update (https://review.openstack.org/#/c/24103/) missed header files that contained "OpenStack, LLC". This change corrects the missed files to reflect the OpenStack Foundation. Change-Id: I9c6de265267485ef2c82ea7e6d8643e82134d102
* Don't check exit codes when patching.Dan Prince2013-03-071-1/+2
| | | | | | | | | | | | | Similar to what we did in 427769c we need to ignore checking exit codes for patch -N command so that they can be run multiple times. The motivation here is that I would like to use this to patch virtual env's created by tox. Tox doesn't provide a good hook to call post_process (which patches files) only once so the idea here is we'll just let it call post_process all the time... Change-Id: I866e7a3e1fd492d7d4c08eb55cde02f2dfa16c9a
* Update install_venv_common to use patch -N.Dan Prince2013-03-061-1/+1
| | | | | | | | | | | | | | | This patch makes it possible to call the post_process function in install_venv_common (which currently only patches files) multiple times. The motivation here is that I would like to use this to patch virtual env's created by tox. Tox doesn't provide a good hook to call post_process (which patches files) only once so the idea here is we'll just let it call post_process all the time... and for distro's where patching is used to fix the venv the patch -N option will make it skip patches on subsequent runs. Change-Id: Ib0a36e49dd1884de131c569fe8bb66fe20285e97
* Avoid using cfg in install_venv_commonMark McLoughlin2013-02-191-20/+7
| | | | | | | | | | | | | | | Several people have complained that requiring oslo-config to be installed in order to run install_venv seems like a chicken and egg problem. We're only using cfg for a boolean CLI option which is way overkill. The truth is that cfg is really only interesting if you want to process options from both the command line and configuration files. Clearly that's not the case here. Just use argparse instead of cfg. Change-Id: Ib602686b554c3548f4be3d4a69d128c5fef7e8cf
* Use oslo-config-2013.1b3Mark McLoughlin2013-02-171-1/+1
| | | | | | | | | | | | | | | The cfg API is now available via the oslo-config library, so switch to it and remove the copied-and-pasted version. Add the 2013.1b3 tarball to tools/pip-requires - this will be changed to 'oslo-config>=2013.1' when oslo-config is published to pypi. This will happen in time for grizzly final. Remove the 'deps = pep8==1.3.3' and 'deps = pyflakes' from tox.ini as it means all the other deps get installed with easy_install which can't install oslo-config from the URL. Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
* Cleanup docstring and print in install_venv_commonMatthew Treinish2013-02-111-2/+2
| | | | | | | | | | | | | | This commit cleans up usage in the docstring for: run_command_with_code() to be more explicit in the description of where the commands are being run. It also updates the prints to be consistent in the usage of venv vs virtualenv. These changes were recommended in the review for change: I68fe3449ed0fcc7fdfb84af2dcc77a39ebde7f01 Change-Id: I3cdb3d991503446d37c8fa6a3547585a4f8beb6a
* Allow tools/install_venv_common.py to be run from within theJosh Kearney2013-02-051-0/+7
| | | | | | | | | source directory. Not doing this raised exceptions when it tried importing modules that didn't exist in the path. Change-Id: I10e02cd9ce6beb8fdf822dd397688450ac6981a1
* Update copyright on install_venv_common.pyMatthew Treinish2013-01-281-0/+1
| | | | | | | This updates the copyrights on install_venv_common.py to include IBM. Change-Id: I5da3d9f1f511f20b332dc206aba4bcd2011a4940
* Add install_venv library.Matthew Treinish2013-01-241-0/+224
This adds a install_venv.py library that can be used by each project's tools/install_venv.py script. Currently all the projects have very similar install_venv scripts in their respective tools directories that all accomplish the same end result. This just breaks out the common code and puts it in a class that can be imported and used in each project's script. Change-Id: I8346fc4201f35e5d0c475caef893ca71e7db8236