Open Antares0982 opened 1 week ago
May be relavant: https://github.com/pypa/setuptools/issues/3452
@mweinelt
It seems a simple patch like this should work:
diff --git a/setuptools/_vendor/importlib_metadata/__init__.py b/setuptools/_vendor/importlib_metadata/__init__.py
index ed4813551..790513de1 100644
--- a/setuptools/_vendor/importlib_metadata/__init__.py
+++ b/setuptools/_vendor/importlib_metadata/__init__.py
@@ -836,7 +836,7 @@ class Prepared:
"""
PEP 503 normalization plus dashes as underscores.
"""
- return re.sub(r"[-_.]+", "-", name).lower().replace('-', '_')
+ return re.sub(r"[-_.]+", "-", str(name)).lower().replace('-', '_')
@staticmethod
def legacy_normalize(name):
But the reason why the recent nixos-unstable breaks setuptools is still unknown.
How can I bypass this issue meanwhile?
How can I bypass this issue meanwhile?
Use packageOverrides
and apply the patch above, see
https://github.com/Antares0982/pyyjson/blob/f49da0b55ab85908ea2edd1b6324cce6a323b8e3/dev_tools/shell.nix#L7
This is the upstream issue: https://github.com/pypa/pyproject-hooks/issues/206 We should instead bump setuptools.
Steps To Reproduce
Steps to reproduce the behavior:
nix develop
with dev shell:Build log
Additional context
flake.lock
Notify maintainers
Metadata
Add a :+1: reaction to issues you find important.