Skip to content
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

find-links should override allow-hosts - avoid allowing all of "github.com" #133

Closed
ghost opened this issue Jan 7, 2014 · 3 comments
Closed

Comments

@ghost
Copy link

ghost commented Jan 7, 2014

Originally reported by: lrowe (Bitbucket: lrowe, GitHub: lrowe)


I like to restrict installation to pypi, but sometimes I need to use a particular tag tarball from a personal fork of a package. Currently that requires adding "github.com" to allow-hosts, which is far too broad.

It looks like this could be achieved by populating a set of always allowed urls in add_find_links which would be okayed by url_ok regardless of the configured allowed hosts (as 'file' scheme urls are.)

(I'm using buildout, but digging into the code it looks like the underlying issue is from setuptools.)


@ghost
Copy link
Author

ghost commented Jan 7, 2014

Original comment by mgedmin (Bitbucket: mgedmin, GitHub: mgedmin):


Can you clarify if you're talking about --find-links on the easy_install command line/find-links= in buildout.cfg, or about setup(find_links=...), or both?

I use allow-hosts specifically to disable random setup.py files arbitrarily specifying other package sources with find_links. (I don't see any other reason for even having allow-hosts.)

Now --find-links on the command line or in buildout.cfg, I don't think I would mind those overriding allow-hosts.

@ghost
Copy link
Author

ghost commented Jan 7, 2014

Original comment by lrowe (Bitbucket: lrowe, GitHub: lrowe):


Only easy-install's --find-links and buildout's find-links, not the project level find_links.

@pganssle pganssle added the Needs Triage Issues that need to be evaluated for severity and status. label Oct 19, 2018
@abravalheri
Copy link
Contributor

Hello, I suppose we can close this issue now that easy_install and the direct usage of python setup.py install have been deprecated and widely replace by other installation means, such as pypa/pip.

If anyone would like to reopen this issue, please feel free to write a new comment with more information or other use cases that we might be missing 😄.

@abravalheri abravalheri added obsolete and removed Needs Triage Issues that need to be evaluated for severity and status. labels Jan 4, 2022
jaraco added a commit that referenced this issue Apr 10, 2022
Use cache_tag in default build_platlib dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants