[MacPorts] #68437: py-onnx: destroot failed due to destroot_target set to install (non-pep517) even if previous actions are pep517
MacPorts
noreply at macports.org
Thu Oct 12 12:13:56 UTC 2023
#68437: py-onnx: destroot failed due to destroot_target set to install (non-pep517)
even if previous actions are pep517
--------------------+---------------------
Reporter: nc7s | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: py-onnx
--------------------+---------------------
I'm not sure if this is rather a problem of python1.0.tcl, but since it
happened when installing py311-onnx, I'll file under its name. Please move
it to appropriate categories.
{{{
:info:destroot Executing: cd "/opt/local/var/macports/build
/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/onnx-1.10.2"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
-m installer install --destdir /opt/local/var/macports/build
/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/destroot
:debug:destroot system: cd "/opt/local/var/macports/build
/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/onnx-1.10.2"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
-m installer install --destdir /opt/local/var/macports/build
/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/destroot
:info:destroot Traceback (most recent call last):
:info:destroot File "<frozen runpy>", line 198, in _run_module_as_main
:info:destroot File "<frozen runpy>", line 88, in _run_code
:info:destroot File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/installer/__main__.py", line 98, in <module>
:info:destroot _main(sys.argv[1:], "python -m installer")
:info:destroot File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/installer/__main__.py", line 86, in _main
:info:destroot with WheelFile.open(args.wheel) as source:
:info:destroot File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/contextlib.py",
line 137, in __enter__
:info:destroot return next(self.gen)
:info:destroot ^^^^^^^^^^^^^^
:info:destroot File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11
/site-packages/installer/sources.py", line 162, in open
:info:destroot with zipfile.ZipFile(path) as f:
:info:destroot ^^^^^^^^^^^^^^^^^^^^^
:info:destroot File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/zipfile.py",
line 1284, in __init__
:info:destroot self.fp = io.open(file, filemode)
:info:destroot ^^^^^^^^^^^^^^^^^^^^^^^
:info:destroot FileNotFoundError: [Errno 2] No such file or directory:
'install'
:info:destroot Command failed: cd "/opt/local/var/macports/build
/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/onnx-1.10.2"
&&
/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11
-m installer install --destdir /opt/local/var/macports/build
/_Users_i_Works_macports-ports_python_py-onnx/py311-onnx/work/destroot
:info:destroot Exit code: 1
:error:destroot Failed to destroot py311-onnx: command execution failed
:debug:destroot Error code: CHILDSTATUS 53035 1
:debug:destroot Backtrace: command execution failed
:debug:destroot while executing
:debug:destroot "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:destroot invoked from within
:debug:destroot "command_exec -callback
portprogress::target_progress_callback destroot"
:debug:destroot (procedure "portdestroot::destroot_main" line 2)
:debug:destroot invoked from within
:debug:destroot "$procedure $targetname"
:error:destroot See /opt/local/var/macports/logs/_Users_i_Works_macports-
ports_python_py-onnx/py311-onnx/main.log for details.
}}}
destroot_destdir is only set to `--destroot DESTDIR` if
`${python.pep517}`, so it certainly is set? But destroot_target is only
set to `install` if NOT `${python.pep517}`. I'm not sure what's going on
here.
--
Ticket URL: <https://trac.macports.org/ticket/68437>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list