Request: Global configuration file
See original GitHub issueHello and thanks for all your work!
I work at an organization where we run a private PyPI (Artifactory) that that hosts some private tools and acts as a caching proxy for the public PyPI. It’s easy enough to configure pip to use this internal pypi using /etc/pip.conf. However, there’s no global configuration file for setuptools. This wouldn’t be a problem, except that we also use some setup_requires build tools, and some of our build environments are isolated from the internet (they have to use our private PyPI proxy). In order to tell setuptools the URL of our proxy, we have resorted to patching virtualenv to modify the $VIRTUAL_ENV/lib/pythonX.Y/distutils/distutils.cfg that it creates, adding our own index_url. However, this is a pain to maintain - we have to rebuild and patch every virtualenv release.
If setuptools would look at, for example, /etc/pydistutils.cfg, then we could put the index_url configuration there. This would let us use the vanilla version of virtualenv while still allowing our builds to use the PyPI proxy.
Does this sound like a direction you’d be willing to go?
Thanks again!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9 (3 by maintainers)

Top Related StackOverflow Question
@tgs I think the issue is a bug in virtualenv or pip that is breaking the build isolation. You can fix it by tightening the bounds on the build requirements to require
setuptools >= 40.8.0or by explicitly adding a build backend (add the linebuild-backend = "setuptools.build_meta"below therequiresline).I’ll report the bug to virtualenv later tonight.
Might be worth noting that some options preclude wheel usage: