Skip to content

Allow easier reuse of compose_install_command of PythonPackage, and add %(python)s template and default Python libdir in sanity check#4050

Closed
Flamefire wants to merge 2 commits intoeasybuilders:developfrom
Flamefire:pythonpkg-reuse
Closed

Allow easier reuse of compose_install_command of PythonPackage, and add %(python)s template and default Python libdir in sanity check#4050
Flamefire wants to merge 2 commits intoeasybuilders:developfrom
Flamefire:pythonpkg-reuse

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

This now accepts an install_src parameter to choose which package to install.
This can be used to e.g. install wheels without duplicating the logic
used to determine parameters such as --no-build-isolation.

Additionally in the sanity check %(python)s can be used which is populated AFTER potentially loading the module and determining self.python_cmd which avoids failures in --sanity-check-only where that might not yet be set.

Similar it keeps the default sanity check dir even when files parameter is set further reducing duplication.

For a use case see #4046 which includes this change

This now accepts an `install_src` parameter to choose which package to
install.
This can be used to e.g. install wheels without duplicating the logic
used to determine parameters such as `--no-build-isolation`.
@boegel boegel changed the title Allow easier reuse of compose_install_command of PythonPackage, and add %(python)s template and default Python libdir in sanity check Allow easier reuse of compose_install_command of PythonPackage, and add %(python)s template and default Python libdir in sanity check Jan 28, 2026
@boegel boegel added this to the next release (5.2.1?) milestone Jan 28, 2026
Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 16, 2026

Test report by @boegel

Overview of tested easyconfigs (in order)

  • SUCCESS matplotlib-3.9.2-gfbf-2024a.eb

  • SUCCESS libxml2-2.14.3-GCCcore-14.3.0.eb

Build succeeded for 2 out of 2 (total: 6 mins 12 secs) (2 easyconfigs in total)
node4248.shinx.os - Linux RHEL 9.6, x86_64, AMD EPYC 9654 96-Core Processor (zen4), Python 3.9.21
See https://gist.github.com/boegel/f4e13ddb3d05c1b869387f0317966f4d for a full test report.

@boegel boegel closed this in #4046 Feb 16, 2026
@boegel
Copy link
Copy Markdown
Member

boegel commented Feb 16, 2026

@Flamefire Flamefire deleted the pythonpkg-reuse branch February 16, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants