[MacPorts] #58879: py37-packaging depends on py37-attrs

MacPorts noreply at macports.org
Sun Aug 25 21:31:23 UTC 2019


#58879: py37-packaging depends on py37-attrs
--------------------+--------------------------
 Reporter:  blair   |      Owner:  blair
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  py-packaging
--------------------+--------------------------
 When building everything from source today on High Sierra I got this error

 {{{
 $ sudo port -d -v install clang-8.0
 --->  Computing dependencies for clang-8.0.........
 --->  Dependencies to be installed: cmake ld64 ld64-xcode libomp llvm-8.0
 llvm_s
 elect xar
 --->  Fetching distfiles for cmake
 --->  Verifying checksums for cmake
 --->  Checksumming cmake-3.15.2.tar.gz
 --->  Extracting cmake
 --->  Extracting cmake-3.15.2.tar.gz
 Executing:  cd
 "/opt/local/var/macports/build/_Users_blair_Code_MacPorts_macport
 s-ports.git_devel_cmake/cmake/work" && /usr/bin/gzip -dc
 '/opt/local/var/macport
 s/distfiles/cmake/cmake-3.15.2.tar.gz' | /usr/bin/tar -xf -
 ...
 ...
 cd /opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Utilities/Sphinx &&
 /opt/local/bin/sphinx-build-3.7 -c /opt/local/var/macports/build
 /_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Utilities/Sphinx -d
 /opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Utilities/Sphinx/doctrees -b
 html /opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Help
 /opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Utilities/Sphinx/html >
 build-html.log
 ...
 ...
 Traceback (most recent call last):
   File "/opt/local/bin/sphinx-build-3.7", line 6, in <module>
     from pkg_resources import load_entry_point
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/pkg_resources/__init__.py", line 3250, in <module>
     @_call_aside
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
     f(*args, **kwargs)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/pkg_resources/__init__.py", line 3263, in
 _initialize_master_working_set
     working_set = WorkingSet._build_master()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/pkg_resources/__init__.py", line 583, in _build_master
     ws.require(__requires__)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/pkg_resources/__init__.py", line 900, in require
     needed = self.resolve(parse_requirements(requirements))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/pkg_resources/__init__.py", line 786, in resolve
     raise DistributionNotFound(req, requirers)
 pkg_resources.DistributionNotFound: The 'attrs' distribution was not found
 and is required by packaging
 }}}

 Installing py37-attrs and then running this works...

 {{{
 /opt/local/bin/sphinx-build-3.7 -c /opt/local/var/macports/build
 /_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Utilities/Sphinx -d
 /opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Utilities/Sphinx/doctrees -b
 html /opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Help
 /opt/local/var/macports/build/_Users_blair_Code_MacPorts_macports-
 ports.git_devel_cmake/cmake/work/cmake-3.15.2/Utilities/Sphinx/html
 Running Sphinx v2.2.0
 loading pickled environment... done
 }}}

 It appears that this is a missing dependency in py37-packaging. Unpacking
 packaging-19.1.tar.gz and looking at its setup.py:

 {{{
     install_requires=["attrs", "pyparsing>=2.0.2", "six"],  # Needed to
 avoid issue #91
 }}}

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


More information about the macports-tickets mailing list