When I use my own local pip repository, setup-clienttools will failed, and have below error in pip.log.
Running setup.py install for cryptography
Running command /home/qiwa/tripleo/tripleo-incubator/openstack-tools/bin/python -c "import setuptools, tokenize;__file__='/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-HVQbZX-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/qiwa/tripleo/tripleo-incubator/openstack-tools/include/site/python2.7
Download error on https://pypi.python.org/simple/cffi/: [Errno 110] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'cffi' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 110] Connection timed out -- Some packages may not be found!
No local packages or download links found for cffi>=0.8
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py", line 338, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 263, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 288, in fetch_build_eggs
replace_conflicting=True,
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 870, in best_match
return self.obtain(req, installer)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 882, in obtain
return installer(requirement)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 355, in fetch_build_egg
return cmd.easy_install(req)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 607, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=0.8')
Complete output from command /home/qiwa/tripleo/tripleo-incubator/openstack-tools/bin/python -c "import setuptools, tokenize;__file__='/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-HVQbZX-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/qiwa/tripleo/tripleo-incubator/openstack-tools/include/site/python2.7:
Download error on https://pypi.python.org/simple/cffi/: [Errno 110] Connection timed out -- Some packages may not be found!
Couldn't find index page for 'cffi' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno 110] Connection timed out -- Some packages may not be found!
No local packages or download links found for cffi>=0.8
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py", line 338, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 263, in __init__
self.fetch_build_eggs(attrs['setup_requires']) File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 288, in fetch_build_eggs
replace_conflicting=True,
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 870, in best_match
return self.obtain(req, installer)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 882, in obtain
return installer(requirement)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 355, in fetch_build_egg
return cmd.easy_install(req)
File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 607, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=0.8')
My workaround is to manually install 2 packages in setup-clienttools
pip install cffi
pip install pycparser