Prevent python from automatically downloading dependencies

Joshua Root jmr at
Sun Jun 25 05:52:31 UTC 2017

On 2017-6-25 12:27 , Ryan Schmidt wrote:
> We often have this problem that we forget to specify dependencies in a python port. Python (setuptools?) helpfully automatically downloads a temporary copy of the dependency to use, so we may not notice this until committing the port, at which point if we're looking at the buildbot logs we might notice that it fails to build on older OS versions because of SSL problems.
> Here's an example:
> Is there a way we can tell python in the python portgroup that it should not attempt to automatically download dependencies, so that we would discover these problems earlier?

According to the setuptools docs, easy_install at least has a --no-deps 
flag, and if that doesn't work, there's a --allow-hosts flag to which 
you can pass None to prevent all downloading. Someone would have to test 
whether these work when passed to as well.

- Josh

More information about the macports-dev mailing list