[Bug 280251] py-setuptools broken after py311 update
Date: Fri, 12 Jul 2024 23:27:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280251
Bug ID: 280251
Summary: py-setuptools broken after py311 update
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: python@FreeBSD.org
Reporter: rsmith@xs4all.nl
Assignee: python@FreeBSD.org
Flags: maintainer-feedback?(python@FreeBSD.org)
After the recent update (using packages) to python 3.11 as default Python,
setuptools doesn't work anymore.
Basically ever build that uses setuptools fails in the same way;
Example; trying to build a new setuptools:
root@elysium:/usr/ports/devel/py-setuptools # make
===> License MIT accepted by the user
===> py311-setuptools-63.1.0_1 depends on file: /usr/local/sbin/pkg - found
=> setuptools-63.1.0.tar.gz doesn't seem to exist in
/usr/ports/distfiles/python.
=> Attempting to fetch
https://files.pythonhosted.org/packages/source/s/setuptools/setuptools-63.1.0.tar.gz
setuptools-63.1.0.tar.gz 2538 kB 14 MBps 00s
===> Fetching all distfiles required by py311-setuptools-63.1.0_1 for building
===> Extracting for py311-setuptools-63.1.0_1
=> SHA256 Checksum OK for python/setuptools-63.1.0.tar.gz.
===> Patching for py311-setuptools-63.1.0_1
===> Applying FreeBSD patches for py311-setuptools-63.1.0_1 from
/usr/ports/devel/py-setuptools/files
===> py311-setuptools-63.1.0_1 depends on file: /usr/local/bin/python3.11 -
found
===> Configuring for py311-setuptools-63.1.0_1
Traceback (most recent call last):
File "/usr/ports/devel/py-setuptools/work-py311/setuptools-63.1.0/setup.py",
line 87, in <module>
dist = setuptools.setup(**setup_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/usr/ports/devel/py-setuptools/work-py311/setuptools-63.1.0/setuptools/__init__.py",
line 86, in setup
_install_setup_requires(attrs)
File
"/usr/ports/devel/py-setuptools/work-py311/setuptools-63.1.0/setuptools/__init__.py",
line 75, in _install_setup_requires
dist = MinimalDistribution(attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/usr/ports/devel/py-setuptools/work-py311/setuptools-63.1.0/setuptools/__init__.py",
line 57, in __init__
super().__init__(filtered)
File
"/usr/ports/devel/py-setuptools/work-py311/setuptools-63.1.0/setuptools/dist.py",
line 474, in __init__
for ep in metadata.entry_points(group='distutils.setup_keywords'):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 1041,
in entry_points
return SelectableGroups.load(eps).select(**params)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 476, in
load
ordered = sorted(eps, key=by_group)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 1038,
in <genexpr>
eps = itertools.chain.from_iterable(
^
File "/usr/local/lib/python3.11/importlib/metadata/_itertools.py", line 16,
in unique_everseen
k = key(element)
^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 955, in
_normalized_name
or super()._normalized_name
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 627, in
_normalized_name
return Prepared.normalize(self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 882, in
normalize
return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/re/__init__.py", line 185, in sub
return _compile(pattern, flags).sub(repl, string, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
*** Error code 1
--
You are receiving this mail because:
You are the assignee for the bug.