[Bug 268893] Mk/Uses/python.mk: need a way to specify wheel name != PORTNAME
Date: Fri, 13 Jan 2023 04:21:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268893 --- Comment #15 from Yasuhiro Kimura <yasu@freebsd.org> --- (In reply to Charlie Li from comment #13) > These ones are compliant, with dashes/hyphens normalised to underscores for the built distributions (wheels). Then it seems 'USE_PYTHON=pep517' doesn't consider such normalization. As I wrote in comment #5, wheel filename of 'spf-engine' is 'spf_engine-3.0.2-py3-none-any.whl' as a result of normalization. But at staging phase framework looks for 'spf-engine-3.0.2-*.whl' as following. yasu@rolling-vm-freebsd2[1022]% make stage ===> License APACHE20 GPLv2+ accepted by the user ===> py311-spf-engine-3.0.2 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by py311-spf-engine-3.0.2 for building ===> Extracting for py311-spf-engine-3.0.2 => SHA256 Checksum OK for spf-engine-3.0.2.tar.gz. ===> Patching for py311-spf-engine-3.0.2 ===> Applying FreeBSD patches for py311-spf-engine-3.0.2 from /usr/ports/mail/py-spf-engine/files ===> py311-spf-engine-3.0.2 depends on package: py311-flit-core>=3.8<4 - found ===> py311-spf-engine-3.0.2 depends on file: /usr/local/bin/python3.11 - found ===> py311-spf-engine-3.0.2 depends on package: py311-build>0 - found ===> py311-spf-engine-3.0.2 depends on package: py311-installer>0 - found ===> Configuring for py311-spf-engine-3.0.2 ===> Building for py311-spf-engine-3.0.2 * Getting build dependencies for wheel... * Building wheel... Successfully built spf_engine-3.0.2-py3-none-any.whl ===> Staging for py311-spf-engine-3.0.2 ===> py311-spf-engine-3.0.2 depends on package: py311-authres>0 - found ===> py311-spf-engine-3.0.2 depends on package: py311-milter>0 - found ===> py311-spf-engine-3.0.2 depends on package: py311-pyspf>0 - found ===> py311-spf-engine-3.0.2 depends on file: /usr/local/bin/python3.11 - found ===> Generating temporary packing list ===> Creating groups. ===> Creating users Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/local/lib/python3.11/site-packages/installer/__main__.py", line 85, in <module> _main(sys.argv[1:], "python -m installer") File "/usr/local/lib/python3.11/site-packages/installer/__main__.py", line 73, in _main with WheelFile.open(args.wheel) as source: File "/usr/local/lib/python3.11/contextlib.py", line 137, in __enter__ return next(self.gen) ^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/installer/sources.py", line 122, in open with zipfile.ZipFile(path) as f: ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/zipfile.py", line 1281, in __init__ self.fp = io.open(file, filemode) ^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/usr0/freebsd/ports/work/usr/ports/mail/py-spf-engine/work-py311/spf-engine-3.0.2/dist/spf-engine-3.0.2-*.whl' *** Error code 1 Stop. make: stopped in /usr/ports/mail/py-spf-engine yasu@rolling-vm-freebsd2[1023]% -- You are receiving this mail because: You are on the CC list for the bug.