Installation issue: py-quantities
Summary
Summary | Spack package build failure |
Package info | py-quantities |
System | |
Related |
In order to build py-quantities
, py-setuptools@61:
is needed, because older versions do not support PEP 621 and can't extract the information from pyproject.toml
correctly. Currently the EBRAINS Spack environment uses py-setuptools@:57
because of the py-deap
package (a dependency of py-snudda
) that needs 2to3
, that stopped being supported after py-setuptools@58
.
Steps to reproduce the issue
$ spack install py-quantities@0.14.0^py-setuptools@:57
Error message
The package seems to be installed correctly, but in fact nothing is built. From the build logs:
Error message
==> py-quantities: Executing phase: 'install'
==> [2023-02-09-18:53:18.842068] '/mnt/spack_v0.18.1_t/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/python-3.8.11-5g66oktvlxp4dqzf7hcifbxqbi7thfpf/bin/python3.8' '-m' 'pip' '-vvv' '--no-input' '--no-cache-dir' '--disable-pip-version-check' 'install' '--no-deps' '--ignore-installed' '--no-build-isolation' '--no-warn-script-location' '--no-index' '--prefix=/builds/technical-coordination/project-internal/devops/platform/ebrains-spack-builds/spack/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/py-quantities-0.14.0-jj5z5soibln5eawjxu5rqtqbcvcga5er' '.'
Using pip 21.3.1 from /mnt/spack_v0.18.1_t/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/py-pip-21.3.1-a5556ceelaavnguohxumb5ijzg2blnlw/lib/python3.8/site-packages/pip (python 3.8)
Non-user install due to --prefix or --target option
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /tmp/pip-ephem-wheel-cache-l7av259o
Created temporary directory: /tmp/pip-req-tracker-8fp634s6
Initialized build tracking at /tmp/pip-req-tracker-8fp634s6
Created build tracker: /tmp/pip-req-tracker-8fp634s6
Entered build tracker: /tmp/pip-req-tracker-8fp634s6
Created temporary directory: /tmp/pip-install-wq9614pg
Processing /tmp/root/spack-stage/spack-stage-py-quantities-0.14.0-jj5z5soibln5eawjxu5rqtqbcvcga5er/spack-src
Added file:///tmp/root/spack-stage/spack-stage-py-quantities-0.14.0-jj5z5soibln5eawjxu5rqtqbcvcga5er/spack-src to build tracker '/tmp/pip-req-tracker-8fp634s6'
Created temporary directory: /tmp/pip-modern-metadata-sp5es3qp
Preparing metadata (pyproject.toml): started
Running command /mnt/spack_v0.18.1_t/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/python-3.8.11-5g66oktvlxp4dqzf7hcifbxqbi7thfpf/bin/python3.8 /mnt/spack_v0.18.1_t/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/py-pip-21.3.1-a5556ceelaavnguohxumb5ijzg2blnlw/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpk6qxtdd5
running dist_info
creating /tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.egg-info
writing /tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.egg-info/SOURCES.txt'
listing git files failed - pretending there aren't any
reading manifest file '/tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'conda.recipe'
writing manifest file '/tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-sp5es3qp/UNKNOWN.dist-info'
Preparing metadata (pyproject.toml): finished with status 'done'
Source in /tmp/root/spack-stage/spack-stage-py-quantities-0.14.0-jj5z5soibln5eawjxu5rqtqbcvcga5er/spack-src has version 0.14.0, which satisfies requirement UNKNOWN==0.14.0 from file:///tmp/root/spack-stage/spack-stage-py-quantities-0.14.0-jj5z5soibln5eawjxu5rqtqbcvcga5er/spack-src
Removed UNKNOWN==0.14.0 from file:///tmp/root/spack-stage/spack-stage-py-quantities-0.14.0-jj5z5soibln5eawjxu5rqtqbcvcga5er/spack-src from build tracker '/tmp/pip-req-tracker-8fp634s6'
Created temporary directory: /tmp/pip-unpack-wo35pn70
Building wheels for collected packages: UNKNOWN
Created temporary directory: /tmp/pip-wheel-2hy594g7
Destination directory: /tmp/pip-wheel-2hy594g7
Building wheel for UNKNOWN (pyproject.toml): started
Running command /mnt/spack_v0.18.1_t/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/python-3.8.11-5g66oktvlxp4dqzf7hcifbxqbi7thfpf/bin/python3.8 /mnt/spack_v0.18.1_t/opt/spack/linux-ubuntu20.04-x86_64/gcc-10.3.0/py-pip-21.3.1-a5556ceelaavnguohxumb5ijzg2blnlw/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmph3nykfh5
running bdist_wheel
running build
installing to build/bdist.linux-x86_64/wheel
running install
running install_egg_info
running egg_info
creating UNKNOWN.egg-info
writing UNKNOWN.egg-info/PKG-INFO
writing dependency_links to UNKNOWN.egg-info/dependency_links.txt
writing top-level names to UNKNOWN.egg-info/top_level.txt
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
listing git files failed - pretending there aren't any
reading manifest file 'UNKNOWN.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching 'conda.recipe'
writing manifest file 'UNKNOWN.egg-info/SOURCES.txt'
Copying UNKNOWN.egg-info to build/bdist.linux-x86_64/wheel/UNKNOWN-0.14.0-py3.8.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/UNKNOWN-0.14.0.dist-info/WHEEL
creating '/tmp/pip-wheel-2hy594g7/tmpo9e2b9sm/UNKNOWN-0.14.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'UNKNOWN-0.14.0.dist-info/METADATA'
adding 'UNKNOWN-0.14.0.dist-info/WHEEL'
adding 'UNKNOWN-0.14.0.dist-info/top_level.txt'
adding 'UNKNOWN-0.14.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Building wheel for UNKNOWN (pyproject.toml): finished with status 'done'
Created wheel for UNKNOWN: filename=UNKNOWN-0.14.0-py3-none-any.whl size=976 sha256=d86338cf2ebe4033e527f29d0260738031563700882bff4aaa1fc2b809e7e94d
Stored in directory: /tmp/pip-ephem-wheel-cache-l7av259o/wheels/a3/f2/bb/4f1820b70992c8e195837a533707e69a1b3d826e0a4e7d18a8
Successfully built UNKNOWN
Installing collected packages: UNKNOWN
Successfully installed UNKNOWN-0.14.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Removed build tracker: '/tmp/pip-req-tracker-8fp634s6'
==> Testing package py-quantities-0.14.0-jj5z5so
==> [2023-02-09-18:53:22.669636] Running install-time tests
==> [2023-02-09-18:53:22.670002] ('RUN-TESTS: install-time tests [test]',)
Additional information
Build logs: spack-build-out.txt