From 8052acacd6a6912ce2c75f552be3fa41092cc218 Mon Sep 17 00:00:00 2001 From: Gregory Meno Date: Mon, 8 Jun 2015 23:15:01 +0000 Subject: [PATCH] teuthology: stop pip and setuptools from fighting over deps that exist in the system site packages Signed-off-by: Gregory Meno --- bootstrap | 2 -- requirements.txt | 28 ++-------------------------- setup.py | 32 +++++++++++++++++++++----------- 3 files changed, 23 insertions(+), 39 deletions(-) diff --git a/bootstrap b/bootstrap index c4cfcd0a6f..cf481e56fb 100755 --- a/bootstrap +++ b/bootstrap @@ -93,5 +93,3 @@ if [ -z "$NO_CLOBBER" ] || [ ! -e ./virtualenv ]; then fi ./virtualenv/bin/pip install -r requirements.txt - -./virtualenv/bin/python setup.py develop diff --git a/requirements.txt b/requirements.txt index f109fc9a43..cd8c47d3d7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,27 +1,3 @@ -# 0.14 switches to libev, that means bootstrap needs to change too -gevent == 0.13.6 -# 1.7.7 has AES-128-CBC support for SSH keys, that's needed -MySQL-python == 1.2.3 -PyYAML -argparse >= 1.2.1 -beanstalkc >= 0.2.0 -boto >= 2.0b4 -bunch >= 1.0.0 -configobj -# Require a new-ish six - only for configobj -six >= 1.5.0 -httplib2 -paramiko < 1.8 -pexpect -requests >= 2.3.0 -raven -web.py -docopt -psutil >= 2.1.0 -configparser -pytest -ansible==1.9.1 +--index-url https://pypi.python.org/simple/ -# Test Dependencies -# nose >=1.0.0 -# fudge >=1.0.3 +-e . diff --git a/setup.py b/setup.py index 96867b7266..2c8b510030 100644 --- a/setup.py +++ b/setup.py @@ -5,16 +5,6 @@ module_file = open("teuthology/__init__.py").read() metadata = dict(re.findall(r"__([a-z]+)__\s*=\s*['\"]([^'\"]*)['\"]", module_file)) long_description = open('README.rst').read() -install_requires=[ - 'setuptools', - ] - -install_requires.extend( - [ln.strip() for ln in open('requirements.txt').readlines() if ln and '#' - not in ln] -) - - setup( name='teuthology', version=metadata['version'], @@ -41,7 +31,27 @@ setup( 'Topic :: System :: Distributed Computing', 'Topic :: System :: Filesystems', ], - install_requires=install_requires, + install_requires=['setuptools', + 'gevent == 0.13.6', # 0.14 switches to libev, that means bootstrap needs to change too + 'MySQL-python == 1.2.3', + 'PyYAML', + 'argparse >= 1.2.1', + 'beanstalkc >= 0.2.0', + 'boto >= 2.0b4', + 'bunch >= 1.0.0', + 'configobj', + 'six >= 1.5.0', # Require a new-ish six - only for configobj + 'httplib2', + 'paramiko < 1.8', + 'pexpect', + 'requests >= 2.3.0', + 'raven', + 'web.py', + 'docopt', + 'psutil >= 2.1.0', + 'configparser', + 'pytest', + 'ansible==1.9.1'], tests_require=['nose >=1.0.0', 'fudge >=1.0.3'], -- 2.39.5