[MacPorts] #60306: py-datrie: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')

MacPorts noreply at macports.org
Fri Apr 3 10:11:07 UTC 2020


#60306: py-datrie: distutils.errors.DistutilsError: Could not find suitable
distribution for Requirement.parse('pytest-runner')
------------------------+-----------------------
 Reporter:  ryandesign  |      Owner:  stromnov
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.2
 Keywords:              |       Port:  py-datrie
------------------------+-----------------------
 https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/20722/steps
 /install-port/logs/stdio

 {{{
 Compiling src/datrie.pyx because it changed.
 [1/1] Cythonizing src/datrie.pyx
 warning: src/cdatrie.pxd:34:4: 'TrieData' redeclared
 WARNING: The pip package is not available, falling back to EasyInstall for
 handling setup_requires/test_requires; this is deprecated and will be
 removed in a future version.

 Note: Bypassing https://pypi.org/simple/pytest-runner/ (disallowed host;
 see http://bit.ly/2hrImnY for details).

 Couldn't find index page for 'pytest-runner' (maybe misspelled?)

 Note: Bypassing https://pypi.org/simple/ (disallowed host; see
 http://bit.ly/2hrImnY for details).

 No local packages or working download links found for pytest-runner
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/installer.py", line 62, in fetch_build_egg
     pkg_resources.get_distribution('pip')
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/pkg_resources/__init__.py", line 482, in get_distribution
     dist = get_provider(dist)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/pkg_resources/__init__.py", line 358, in get_provider
     return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/pkg_resources/__init__.py", line 901, in require
     needed = self.resolve(parse_requirements(requirements))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/pkg_resources/__init__.py", line 787, in resolve
     raise DistributionNotFound(req, requirers)
 pkg_resources.DistributionNotFound: The 'pip' distribution was not found
 and is required by the application

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "setup.py", line 49, in <module>
     setup(name="datrie",
   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 70, in fetch_build_egg
     return _legacy_fetch_build_egg(dist, req)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/installer.py", line 53, in
 _legacy_fetch_build_egg
     return cmd.easy_install(req)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8
 /site-packages/setuptools/command/easy_install.py", line 687, in
 easy_install
     raise DistutilsError(msg)
 distutils.errors.DistutilsError: Could not find suitable distribution for
 Requirement.parse('pytest-runner')
 Command failed:  cd "/opt/local/var/macports/build
 /_opt_bblocal_var_buildworker_ports_build_ports_python_py-
 datrie/py38-datrie/work/datrie-0.8.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 setup.py --no-user-cfg build -j8
 }}}

 Missing dependency?

-- 
Ticket URL: <https://trac.macports.org/ticket/60306>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list