[MacPorts] #60474: py-spaCy @2.2.4: the `allow-hosts` option is not supported when using pip to install requirements (was: Missing py38-spaCy-2.2.4_0.darwin_19.x86_64.tbz2)

MacPorts noreply at macports.org
Tue May 12 12:16:45 UTC 2020


#60474: py-spaCy @2.2.4: the `allow-hosts` option is not supported when using pip
to install requirements
-----------------------+--------------------------
  Reporter:  zap150    |      Owner:  cjones051073
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.2
Resolution:            |   Keywords:
      Port:  py-spaCy  |
-----------------------+--------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * cc: jmroot (added)
 * keywords:  py38-spaCy, 2.2.4 =>
 * milestone:  MacPorts 2.6.3 =>
 * owner:  (none) => cjones051073
 * port:  py38-spaCy => py-spaCy


Comment:

 Prebuilt archives are not available for py-spaCy 2.2.4 because we are
 unable to build it. The error from
 [https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/30157/steps
 /install-port/logs/stdio our build server log] is:

 {{{
 Traceback (most recent call last):
   File "setup.py", line 200, in <module>
     setup_package()
   File "setup.py", line 190, in setup_package
     setup(
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/__init__.py", line 143, in setup
     _install_setup_requires(attrs)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/__init__.py", line 138, in
 _install_setup_requires
     dist.fetch_build_eggs(dist.setup_requires)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/dist.py", line 695, in fetch_build_eggs
     resolved_dists = pkg_resources.working_set.resolve(
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/pkg_resources/__init__.py", line 781, in resolve
     dist = best[req.key] = env.best_match(
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/pkg_resources/__init__.py", line 1066, in best_match
     return self.obtain(req, installer)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/pkg_resources/__init__.py", line 1078, in obtain
     return installer(requirement)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/dist.py", line 754, in fetch_build_egg
     return fetch_build_egg(self, req)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/installer.py", line 83, in fetch_build_egg
     raise DistutilsError('the `allow-hosts` option is not supported '
 distutils.errors.DistutilsError: the `allow-hosts` option is not supported
 when using pip to install requirements.
 }}}

 It looks like this [https://github.com/pypa/setuptools/issues/1916 may be
 because of a change in py-setuptools]. Josh already commented on that bug
 report back in December 2019 about how it broke this feature in MacPorts.
 Josh, what should we be doing to fix this port? Surely this problem
 doesn't prevent all correctly-configured python modules from building or
 it would be a much bigger problem for MacPorts. Is this new error message
 just the new way that we'll be told that a dependency is missing?

-- 
Ticket URL: <https://trac.macports.org/ticket/60474#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list