Skip to content

Conversation

@bartoldeman
Copy link
Contributor

This is put into $EBROOTPYTHON/easybuild/python, which is itself
added to PYTHONPATH, and listens to $EBPYTHONPREFIXES as a list
of prefixes to which lib/pythonx.y/site-packages is added for
every entry, where x.y depends on the running Python version.

$EBROOTPYTHON/easybuild/python needs to be put in PYTHONPATH
to make sure this directory is used even inside virtual environments.

This is put into $EBROOTPYTHON/easybuild/python, which is itself
added to PYTHONPATH, and listens to $EBPYTHONPREFIXES as a list
of prefixes to which lib/pythonx.y/site-packages is added for
every entry, where x.y depends on the running Python version.

$EBROOTPYTHON/easybuild/python needs to be put in PYTHONPATH
to make sure this directory is used even inside virtual environments.
@boegel boegel added this to the next release (3.8.2) milestone Mar 15, 2019
…BPYTHONPREFIXES, avoid hardcoding 'easybuild' subdir (use log_path())
Copy link
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.

@bartoldeman We should have a way to debug the sitecustomize.py script...

Implemented in ComputeCanada#3

add debugging support for sitecustomize.py script
@boegel boegel changed the title If ebpythonprefixes=True, install sitecustomize.py. install sitecustomize.py with Python to support Python package installations for multiple Python versions in a single directory Mar 23, 2019
@boegel
Copy link
Member

boegel commented Mar 23, 2019

Good to go, necessary changes for PythonPackage and PythonBundle to set $EBPYTHONPREFIXES when appropriate be tackled in a follow-up PR...

Thanks @bartoldeman!

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