Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
improve index_url passing for setup_requires #238
4 tests fail in master before and after this patch.
This patch makes setuptools respect the index_url for setup_requires entries. They still won't respect the versions list. But this is a little better.
It fixes an issue with cliff and stevedore, which use the pbr library to share setup logic.
Not easily. Test setup requires a local pypiserver, and the ability to prevent access to pypi.python.org in some way. I accomplished that by setting a bogus entry for pypi.python.org in my /etc/hosts file for a while.
With that setup:
First, bootstrap with access to pypi.python.org open. Then, remove access to pypi.python.org. Then buildout.
If pypi.python.org is inaccessible, the build will fail because of the setup_requires entry for "pbr" here
Unfortunately, buildout can't get the list of setup_requires eggs without triggering the download and install of those eggs. So, setup_requires dodge buildout's index url and version pinning, right now.
This patch improves the situation a little bit by asking the egg to use the correct index url for setup_requires eggs.
Internally, we use a bootstrap that pulls ez_setup.py from a bandersnatch mirror instead of bootstrap.pypi.io, and an ez_setup.py that pulls setuptools from the local bandersnatch mirror as well. Our goal is to keep our builds entirely isolated from pypi.python.org reliability issues.
The idea looks good in principle and I can see what you're trying to achieve.
But: why cannot buildout figure out the
If so, perhaps setuptools could be changed to allow it. That would get the version pinning working, too.
referenced this pull request
Jun 11, 2015
So I don't think it necessary to
But it would be a great idea the
@jonathanultis 's idea is great!