<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 8, 2017, at 9:41 PM, Kurt Hindenburg <<a href="mailto:khindenburg@macports.org" class="">khindenburg@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class=""><blockquote type="cite" class="">On Nov 8, 2017, at 12:13 PM, Rainer Müller <<a href="mailto:raimue@macports.org" class="">raimue@macports.org</a>> wrote:<br class=""><br class="">On 2017-11-08 17:32, Ryan Schmidt wrote:<br class=""><blockquote type="cite" class=""><br class="">On Nov 8, 2017, at 08:24, Kurt Hindenburg wrote:<br class=""><br class=""><blockquote type="cite" class="">On Jun 25, 2017, at 1:52 AM, Joshua Root wrote:<br class=""><br class=""><blockquote type="cite" class="">On 2017-6-25 12:27 , Ryan Schmidt wrote:<br class=""><blockquote type="cite" class="">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.<br class="">Here's an example:<br class=""><a href="https://build.macports.org/builders/ports-10.7_x86_64_legacy-builder/builds/37372" class="">https://build.macports.org/builders/ports-10.7_x86_64_legacy-builder/builds/37372</a><br class="">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?<br class=""></blockquote><br class="">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 setup.py as well.<br class=""><br class="">- Josh<br class=""></blockquote><br class="">i looked at this briefly. I don’t think it is possible to pass easy_install options through setuptools. The only way I could get it to work was to either 1) append to ports setup.cfg; 2) append/create system wide distutils.cfg. Then you’d have to somehow revert upon failure/success. I don’t see how this would work in practice.<br class=""><br class="">Kurt<br class=""><br class="">[easy_install]<br class="">allow_hosts = None<br class=""></blockquote><br class="">These two lines are what would be appended to either of those files? What problems do you foresee if we would have the python portgroup automatically append those lines to the port's setup.cfg?<br class=""></blockquote><br class="">Could we place this into ${workdir}/.home/.pydistutils.cfg, which is in<br class="">the HOME for the macports user? As I understand the documentation linked<br class="">below, this file should be read by default. This could be done<br class="">unconditionally instead of editing the source files of the port.<br class=""><br class=""><a href="https://docs.python.org/2/install/index.html#location-and-names-of-config-files" class="">https://docs.python.org/2/install/index.html#location-and-names-of-config-files</a><br class=""><br class="">Rainer<br class=""></blockquote><br class="">Ok, I didn’t realize ${workdir}/.home would be used. It works as expected if the 2 lines are in that file. Also note that the errors are verbose and perhaps not clear to the user what the issue is.<br class=""> I’ll see about putting the code in the python PG and create a pull request for comments.<br class=""><br class=""></div></div></blockquote><a href="https://github.com/macports/macports-ports/pull/1016" class="">https://github.com/macports/macports-ports/pull/1016</a></div><div><br class=""></div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div class=""> Thanks<br class=""> Kurt<br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>