Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make path to temporary install directory used in test step of PythonPackage easyblock available through environment variable so that it may be used in easyconfigs #3565

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

casparvl
Copy link
Contributor

@casparvl casparvl commented Jan 22, 2025

This is needed by e.g. Astropy (easybuilders/easybuild-easyconfigs#22198), that requires the tests to be ran in the installdir

…EasyCOnfigs. Needed by e.g. Astropy, that requires the tests to be ran in the installdir
@@ -851,6 +851,9 @@ def test_step(self, return_output_ec=False):
actual_installdir = os.path.join(test_installdir, 'local')
else:
actual_installdir = test_installdir
# Export the temporary installdir as an environment variable
# Some tests (e.g. for astropy) require to be run in the installdir
env.setvar('EB_TEST_INSTALLDIR', actual_installdir)
Copy link
Member

Choose a reason for hiding this comment

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

@casparvl Maybe EB_PYTHONPACKAGE_TEST_INSTALLDIR is better, to signal that this is only to be used for easyconfigs that rely on the PythonPackage easyblock?

@boegel boegel changed the title Export the temporary installdir as env var so that it may be used in EasyConfigs Make path to temporary install directory used in test step of PythonPackage easyblock available through environment variable so that it may be used in easyconfigs Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants