dune-common installs Python packages and fails
make install
prints this and then succeeds:
Installing python package
Installing wheel for python package at /usr/ports/math/dune-common/work/.build/python/. into /usr/local/share/dune/wheelhouse...
CMake Warning at /usr/ports/math/dune-common/work/dune-common-d5f5ceec68cc0dc542f175857c9bf14aa98f2c11/cmake/modules/DuneExecuteProcess.cmake:76 (message):
wheel installation failed - ignored
Run
command:/usr/ports/math/dune-common/work/.build/dune-env/bin/python;-m;pip;wheel;-w;/usr/local/share/dune/wheelhouse;/usr/ports/math/dune-common/work/.build/python/.
Return code: 2
Output:
ERROR: Exception:
Traceback (most recent call last):
File "/usr/ports/math/dune-common/work/.build/dune-env/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
status = run_func(*args)
File "/usr/ports/math/dune-common/work/.build/dune-env/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper
return func(self, options, args)
File "/usr/ports/math/dune-common/work/.build/dune-env/lib/python3.9/site-packages/pip/_internal/commands/wheel.py", line 110, in run
ensure_dir(options.wheel_dir)
File "/usr/ports/math/dune-common/work/.build/dune-env/lib/python3.9/site-packages/pip/_internal/utils/misc.py", line 109, in ensure_dir
os.makedirs(path)
File "/usr/local/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/usr/local/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/share/dune'
Call Stack (most recent call first):
python/cmake_install.cmake:48 (dune_execute_process)
cmake_install.cmake:113 (include)
It's fundamentally wrong for a C++ package to also install Python packages, because there are multiple concurrently installed Python versions, each of which needs python package to be installed individually.
If dune-common needs to install Python packages - it should create a separate project for this, for example dune-common-python
, that should build and install Python packages.
Version: 2.9.0