[MacPorts] #72286: py39-markupsafe fails to build: ModuleNotFoundError: No module named 'wheel.macosx_libfile'

MacPorts noreply at macports.org
Thu Apr 3 18:53:42 UTC 2025


#72286: py39-markupsafe fails to build: ModuleNotFoundError: No module named
'wheel.macosx_libfile'
--------------------------+-----------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.5
 Keywords:                |       Port:  py39-markupsafe
--------------------------+-----------------------------
 {{{
 --->  Building py39-markupsafe
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 markupsafe/py39-markupsafe/work/markupsafe-3.0.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 markupsafe/py39-markupsafe/work
 * Getting build dependencies for wheel...
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/config/_apply_pyprojecttoml.py:82:
 SetuptoolsDeprecationWarning: `project.license` as a TOML table is
 deprecated
 !!

 ********************************************************************************
         Please use a simple string containing a SPDX expression for
 `project.license`. You can also use `project.license-files`. (Both options
 available on setuptools>=77.0.0).

         By 2026-Feb-18, you need to update your project and remove
 deprecated calls
         or your builds will no longer be supported.

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   corresp(dist, value, root_dir)
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/config/_apply_pyprojecttoml.py:61:
 SetuptoolsDeprecationWarning: License classifiers are deprecated.
 !!

 ********************************************************************************
         Please consider removing the following classifiers in favor of a
 SPDX license expression:

         License :: OSI Approved :: BSD License

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   dist._finalize_license_expression()
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning:
 License classifiers are deprecated.
 !!

 ********************************************************************************
         Please consider removing the following classifiers in favor of a
 SPDX license expression:

         License :: OSI Approved :: BSD License

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   self._finalize_license_expression()
 running egg_info
 writing src/MarkupSafe.egg-info/PKG-INFO
 writing dependency_links to src/MarkupSafe.egg-info/dependency_links.txt
 writing top-level names to src/MarkupSafe.egg-info/top_level.txt
 reading manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
 reading manifest template 'MANIFEST.in'
 no previously-included directories found matching 'docs/_build'
 warning: no previously-included files matching '*.pyc' found anywhere in
 distribution
 adding license file 'LICENSE.txt'
 writing manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
 * Building wheel...
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/config/_apply_pyprojecttoml.py:82:
 SetuptoolsDeprecationWarning: `project.license` as a TOML table is
 deprecated
 !!

 ********************************************************************************
         Please use a simple string containing a SPDX expression for
 `project.license`. You can also use `project.license-files`. (Both options
 available on setuptools>=77.0.0).

         By 2026-Feb-18, you need to update your project and remove
 deprecated calls
         or your builds will no longer be supported.

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   corresp(dist, value, root_dir)
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/config/_apply_pyprojecttoml.py:61:
 SetuptoolsDeprecationWarning: License classifiers are deprecated.
 !!

 ********************************************************************************
         Please consider removing the following classifiers in favor of a
 SPDX license expression:

         License :: OSI Approved :: BSD License

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   dist._finalize_license_expression()
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning:
 License classifiers are deprecated.
 !!

 ********************************************************************************
         Please consider removing the following classifiers in favor of a
 SPDX license expression:

         License :: OSI Approved :: BSD License

         See https://packaging.python.org/en/latest/guides/writing-
 pyproject-toml/#license for details.
 ********************************************************************************

 !!
   self._finalize_license_expression()
 running bdist_wheel
 running build
 running build_py
 creating build/lib.macosx-10.6-ppc-cpython-39/markupsafe
 copying src/markupsafe/__init__.py -> build/lib.macosx-10.6-ppc-
 cpython-39/markupsafe
 copying src/markupsafe/_native.py -> build/lib.macosx-10.6-ppc-
 cpython-39/markupsafe
 running egg_info
 writing src/MarkupSafe.egg-info/PKG-INFO
 writing dependency_links to src/MarkupSafe.egg-info/dependency_links.txt
 writing top-level names to src/MarkupSafe.egg-info/top_level.txt
 reading manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
 reading manifest template 'MANIFEST.in'
 no previously-included directories found matching 'docs/_build'
 warning: no previously-included files matching '*.pyc' found anywhere in
 distribution
 adding license file 'LICENSE.txt'
 writing manifest file 'src/MarkupSafe.egg-info/SOURCES.txt'
 copying src/markupsafe/_speedups.c -> build/lib.macosx-10.6-ppc-
 cpython-39/markupsafe
 copying src/markupsafe/_speedups.pyi -> build/lib.macosx-10.6-ppc-
 cpython-39/markupsafe
 copying src/markupsafe/py.typed -> build/lib.macosx-10.6-ppc-
 cpython-39/markupsafe
 running build_ext
 building 'markupsafe._speedups' extension
 creating build/temp.macosx-10.6-ppc-cpython-39/src/markupsafe
 /usr/bin/gcc-4.2 -Os -arch ppc -isysroot/
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9
 -c src/markupsafe/_speedups.c -o build/temp.macosx-10.6-ppc-
 cpython-39/src/markupsafe/_speedups.o
 /usr/bin/gcc-4.2 -bundle -undefined dynamic_lookup -L/opt/local/lib
 -Wl,-headerpad_max_install_names -arch ppc -Os -arch ppc -isysroot/
 build/temp.macosx-10.6-ppc-cpython-39/src/markupsafe/_speedups.o -o
 build/lib.macosx-10.6-ppc-
 cpython-39/markupsafe/_speedups.cpython-39-darwin.so
 installing to build/bdist.macosx-10.6-ppc/wheel
 running install
 running install_lib
 creating build/bdist.macosx-10.6-ppc/wheel
 creating build/bdist.macosx-10.6-ppc/wheel/markupsafe
 copying build/lib.macosx-10.6-ppc-cpython-39/markupsafe/__init__.py ->
 build/bdist.macosx-10.6-ppc/wheel/./markupsafe
 copying build/lib.macosx-10.6-ppc-cpython-39/markupsafe/_native.py ->
 build/bdist.macosx-10.6-ppc/wheel/./markupsafe
 copying build/lib.macosx-10.6-ppc-cpython-39/markupsafe/_speedups.c ->
 build/bdist.macosx-10.6-ppc/wheel/./markupsafe
 copying build/lib.macosx-10.6-ppc-
 cpython-39/markupsafe/_speedups.cpython-39-darwin.so ->
 build/bdist.macosx-10.6-ppc/wheel/./markupsafe
 copying build/lib.macosx-10.6-ppc-cpython-39/markupsafe/_speedups.pyi ->
 build/bdist.macosx-10.6-ppc/wheel/./markupsafe
 copying build/lib.macosx-10.6-ppc-cpython-39/markupsafe/py.typed ->
 build/bdist.macosx-10.6-ppc/wheel/./markupsafe
 running install_egg_info
 Copying src/MarkupSafe.egg-info to
 build/bdist.macosx-10.6-ppc/wheel/./MarkupSafe-3.0.2-py3.9.egg-info
 running install_scripts
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in
 <module>
     main()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in
 main
     json_out["return_val"] = hook(**hook_input["kwargs"])
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in
 build_wheel
     return _build_backend().build_wheel(
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/build_meta.py", line 435, in build_wheel
     return _build(['bdist_wheel'])
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/build_meta.py", line 426, in _build
     return self._build_with_temp_dir(
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/build_meta.py", line 407, in
 _build_with_temp_dir
     self.run_setup()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/build_meta.py", line 320, in run_setup
     exec(code, locals())
   File "<string>", line 64, in <module>
   File "<string>", line 41, in run_setup
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/__init__.py", line 117, in setup
     return distutils.core.setup(**attrs)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/_distutils/core.py", line 186, in setup
     return run_commands(dist)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/_distutils/core.py", line 202, in run_commands
     dist.run_commands()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
     self.run_command(cmd)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/dist.py", line 1104, in run_command
     super().run_command(command)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
     cmd_obj.run()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/command/bdist_wheel.py", line 407, in run
     impl_tag, abi_tag, plat_tag = self.get_tag()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/command/bdist_wheel.py", line 321, in get_tag
     plat_name = get_platform(self.bdist_dir)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/command/bdist_wheel.py", line 63, in
 get_platform
     from wheel.macosx_libfile import calculate_macosx_platform_tag
 ModuleNotFoundError: No module named 'wheel.macosx_libfile'

 ERROR Backend subprocess exited when trying to invoke build_wheel
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 markupsafe/py39-markupsafe/work/markupsafe-3.0.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 markupsafe/py39-markupsafe/work
 Exit code: 1
 Error: Failed to build py39-markupsafe: command execution failed
 }}}

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


More information about the macports-tickets mailing list