You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
py-yaml: remove unneeded wheel dep
Closes: https://trac.macports.org/ticket/72334
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__':
|
||||
Reference in New Issue
Block a user