hatchling-1.18.0-GCCcore-12.3.0 might require rebuild
The build procedure of wradlib-2.0.3-foss-2023a in Gentoo prefix fails with:
{EESSI 2023.06} toprichard@aarch64-generic-node1 ~ $ eb -r wradlib-2.0.3-foss-2023a.eb --from-commit 9807cf9f13a9e969b447f136e9e8ad9e5c4548a2
== FAILED: Installation ended unsuccessfully (build directory: /data/EESSI-test/easybuild/build/wradlib/2.0.3/foss-2023a): build failed (first 300 chars): cmd " /cvmfs/software.eessi.io/versions/2023.06/s
oftware/linux/x86_64/intel/haswell/software/Python/3.11.3-GCCcore-12.3.0/bin/python -m pip install --prefix=/data/EESSI-test/software/wradlib/2.0.3-foss-2023a --verbose --no-deps --ignore-installed --
no-index --no-build-isolation ." exited with (took 1 min 22 secs)
== Results of the build can be found in the log file(s) /tmp/eb-ye66m_0a/easybuild-wradlib-2.0.3-20240812.091729.IAtGy.log
ERROR: Build of /tmp/eb-ye66m_0a/files_pr21094/w/wradlib/wradlib-2.0.3-foss-2023a.eb failed (err: 'build failed (first 300 chars): cmd " /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/int
el/haswell/software/Python/3.11.3-GCCcore-12.3.0/bin/python -m pip install --prefix=/data/EESSI-test/software/wradlib/2.0.3-foss-2023a --verbose --no-deps --ignore-installed --no-index --no-build-iso
lation ." exited with ')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/Python/3.11.3-GCCcore-12.3.0/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_proce
ss.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hatchling/1.18.0-GCCcore-12.3.0/lib/python3.11/site-packages/hatchling/build.py", line 56, in build_wheel
return os.path.basename(next(builder.build(wheel_directory, ['standard'])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hatchling/1.18.0-GCCcore-12.3.0/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py", line
93, in build
self.metadata.validate_fields()
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hatchling/1.18.0-GCCcore-12.3.0/lib/python3.11/site-packages/hatchling/metadata/core.py", line 243, in vali
date_fields
_ = self.version
^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hatchling/1.18.0-GCCcore-12.3.0/lib/python3.11/site-packages/hatchling/metadata/core.py", line 128, in vers
ion
self._version = self._get_version()
^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hatchling/1.18.0-GCCcore-12.3.0/lib/python3.11/site-packages/hatchling/metadata/core.py", line 222, in _get
_version
core_metadata = self.core
^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hatchling/1.18.0-GCCcore-12.3.0/lib/python3.11/site-packages/hatchling/metadata/core.py", line 166, in core
metadata_hooks = self.hatch.metadata.hooks
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/intel/haswell/software/hatchling/1.18.0-GCCcore-12.3.0/lib/python3.11/site-packages/hatchling/metadata/core.py", line 1544, in hoo
ks
raise UnknownPluginError(message)
hatchling.plugin.exceptions.UnknownPluginError: Unknown metadata hook: requirements_txt
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
After some troubleshooting, rebuilt hatchling-1.18.0-GCCcore-12.3.0, and tried rebuilding wradlib:
{EESSI 2023.06} toprichard@aarch64-generic-node1 ~ $ eb -r -f hatchling-1.18.0-GCCcore-12.3.0.eb
{EESSI 2023.06} toprichard@aarch64-generic-node1 ~ $ export MODULEPATH=/project/def-users/toprichard/test/modules/all:$MODULEPATH
{EESSI 2023.06} toprichard@aarch64-generic-node1 ~ $ ml av hatchling
------------------------------------------------------------------------------ /project/def-users/toprichard/test/modules/all ------------------------------------------------------------------------------
hatchling/1.18.0-GCCcore-12.3.0
--------------------------------------------------------- /cvmfs/software.eessi.io/versions/2023.06/software/linux/aarch64/neoverse_n1/modules/all ---------------------------------------------------------
hatchling/1.18.0-GCCcore-12.3.0 hatchling/1.18.0-GCCcore-13.2.0 (D)
---------------------------------------------------------------- This is a list of module extensions "module --nx avail ..." to not show.
-----------------------------------------------------------------
hatchling (E)
EESSI 2023.06} toprichard@aarch64-generic-node1 ~ $ eb -r wradlib-2.0.3-foss-2023a.eb --from-commit 9807cf9f13a9e969b447f136e9e8ad9e5c4548a2
== creating module...
>> generating module file @ /project/def-users/toprichard/test/modules/all/wradlib/2.0.3-foss-2023a.lua
== ... (took 4 secs)
== permissions...
== ... (took < 1 sec)
== packaging...
== ... (took < 1 sec)
>> running command:
[started at: 2024-08-12 09:45:46]
[working dir: /home/toprichard]
[output logged in /tmp/eb-g7ufu6y1/easybuild-run_cmd-agvjwg1r.log]
bzip2 /project/def-users/toprichard/test/software/wradlib/2.0.3-foss-2023a/easybuild/easybuild-wradlib-2.0.3-20240812.094546.log
>> command completed: exit 0, ran in 00h00m02s
== COMPLETED: Installation ended successfully (took 1 min 34 secs)
== Results of the build can be found in the log file(s) /project/def-users/toprichard/test/software/wradlib/2.0.3-foss-2023a/easybuild/easybuild-wradlib-2.0.3-20240812.094546.log.bz2
== Build succeeded for 5 out of 5
== Temporary log file(s) /tmp/eb-g7ufu6y1/easybuild-mv8l7y4k.log* have been removed.
== Temporary directory /tmp/eb-g7ufu6y1 has been removed.