py-yaml: remove unneeded wheel dep

Closes: https://trac.macports.org/ticket/72334
This commit is contained in:
Joshua Root
2025-04-13 13:34:27 +10:00
parent 6e276cc1a4
commit f3fa502210
2 changed files with 38 additions and 1 deletions
+2 -1
View File
@@ -36,6 +36,7 @@ if {${name} ne ${subport}} {
} else {
depends_build-append \
port:py${python.version}-cython
patchfiles-append no-wheel.patch
}
depends_lib-append port:libyaml
@@ -54,7 +55,7 @@ if {${name} ne ${subport}} {
size 175147
}
patchfiles patch-setup.py
patchfiles-append patch-setup.py
post-patch {
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/setup.py
+36
View File
@@ -0,0 +1,36 @@
https://github.com/yaml/pyyaml/pull/823
--- pyproject.toml.orig 2024-08-07 06:16:54
+++ pyproject.toml 2025-04-13 12:50:16
@@ -1,7 +1,6 @@
[build-system]
requires = [
"setuptools", # FIXME: declare min/max setuptools versions?
- "wheel",
"Cython; python_version < '3.13'",
"Cython>=3.0; python_version >= '3.13'"
]
--- setup.py.orig 2024-08-07 06:16:54
+++ setup.py 2025-04-13 13:29:21
@@ -93,12 +93,7 @@
if with_cython:
raise
-try:
- from wheel.bdist_wheel import bdist_wheel
-except ImportError:
- bdist_wheel = None
-
try:
from _pyyaml_pep517 import ActiveConfigSettings
except ImportError:
@@ -324,8 +319,6 @@
'build_ext': build_ext,
'test': test,
}
-if bdist_wheel:
- cmdclass['bdist_wheel'] = bdist_wheel
if __name__ == '__main__':