You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to import the package from outside of a Flux instance,
running ``/path/to/flux env | grep PYTHONPATH`` in your shell will show you
what PYTHONPATH would be set to if you were running in a Flux instance
built/installed at ``/path/to/flux``.
Perhaps a better solution would actually be to use flux config builtin python_path anyway.
Also, after #6597, sharness.d/01-setup.sh will modify PYTHONPATH so that the correct Python modules are found for any Python script run in the testsuite. This could be avoided if we instead ensure every Python script is run with flux python instead of just python3 or via a shebang line.
The text was updated successfully, but these errors were encountered:
After #6597 is merged, there will remain two places where Flux still, perhaps surprisingly, modifies
PYTHONPATH
.One is in
flux env
, wherePYTHONPATH
continues to be modified for backwards compatibility. This is due to instructions in the Python docs here:flux-core/doc/python/basics.rst
Lines 17 to 20 in e9f7fcd
Perhaps a better solution would actually be to use
flux config builtin python_path
anyway.Also, after #6597,
sharness.d/01-setup.sh
will modify PYTHONPATH so that the correct Python modules are found for any Python script run in the testsuite. This could be avoided if we instead ensure every Python script is run withflux python
instead of justpython3
or via a shebang line.The text was updated successfully, but these errors were encountered: