New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Global configuration file #1685
Comments
|
I think the preferred way to do this is to specify a As a general rule, we're actually deprecating For projects that you install from a wheel, you also don't have to worry about this, because wheels do not have a build step and thus do not require So given all that, the only remaining packages that are both out of your control (i.e. can't just implement PEP 518) and likely to cause problems are those that both have I am aware that it would certainly be simpler if we implemented a global configuration for |
|
Thanks for the discussion! We will look more closely at those PEPs in the next day or two and comment again on this ticket. |
|
OK, reporting back. PEP 517 does indeed seem like a much simpler system for managing this situation. I tried it on our internal system, starting from a virtualenv that had the newest pip and setuptools. Pip noticed the pyproject.toml file and successfully installed all the build dependencies! So that was great! Unfortunately the next step failed: I added an So my test didn't work all the way through, but it was pretty promising. Given that, I think I agree that it's not worth adding functionality to the |
|
@tgs Are you using I saw the same bug today and I'm trying to figure out why it's happening. |
|
Oh, I think it did have |
|
@pganssle - Yes, in a virtualenv without The pyproject.toml is: |
|
@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 I'll report the bug to virtualenv later tonight. |
|
Thanks! |
Might be worth noting that some options preclude wheel usage:
|
Hello 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
pipto 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 somesetup_requiresbuild 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 patchingvirtualenvto modify the$VIRTUAL_ENV/lib/pythonX.Y/distutils/distutils.cfgthat it creates, adding our ownindex_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 theindex_urlconfiguration there. This would let us use the vanilla version ofvirtualenvwhile still allowing our builds to use the PyPI proxy.Does this sound like a direction you'd be willing to go?
Thanks again!
The text was updated successfully, but these errors were encountered: