-
Notifications
You must be signed in to change notification settings - Fork 49
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
/usr/bin/flux shouldn't set PYTHONPATH to the system python's site-package #1999
Comments
The user's suggestion seems like a good one to me, because I'm not sure how we'd determine reliably when the path we'd add to PYTHONPATH is the "system" path. @SteVwonder or @trws? |
I may have to think about this a bit. The suggestion is sensible, but means things will only work with PYTHONPATH set. |
Would it be possible (and not too much of a kludge) to install Flux's python to the site-package path, but create a link from a flux-specific location (so that PYTHONPATH could be set to flux-specific path, but default system path will work)? |
We should test it, but I see no reason that shouldn't work. I like that idea much better than moving it out otherwise.
…On Sat, 09. Feb 17:04, Mark Grondona wrote:
Would it be possible (and not too much of a kludge) to install Flux's python to the site-package path, but create a link from a flux-specific location (so that PYTHONPATH could be set to flux-specific path, but default system path will work)?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#1999 (comment)
|
Currently we have the following directories defined in autotools for python modules installation:
I think it may be sufficient for this issue if we define one more directory:
Then at install time, create links to I'll try this out, but someone please speak up if there is a flaw in the plan. |
Change the INSTALLED_PYTHON_PATH conf variable to use `fluxpylinkdir` instead of `pexecdir`. This will allow the flux(1) cmddriver to push a non-standard path to the front of PYTHONPATH, pulling in just the flux python modules without inadvertently pulling in other unwanted modules. Fixes flux-framework#1999
Change the INSTALLED_PYTHON_PATH conf variable to use `fluxpylinkdir` instead of `pexecdir`. This will allow the flux(1) cmddriver to push a non-standard path to the front of PYTHONPATH, pulling in just the flux python modules without inadvertently pulling in other unwanted modules. Fixes flux-framework#1999
Change the INSTALLED_PYTHON_PATH conf variable to use `fluxpylinkdir` instead of `pexecdir`. This will allow the flux(1) cmddriver to push a non-standard path to the front of PYTHONPATH, pulling in just the flux python modules without inadvertently pulling in other unwanted modules. Fixes flux-framework#1999
Change the INSTALLED_PYTHON_PATH conf variable to use `fluxpylinkdir` instead of `pexecdir`. This will allow the flux(1) cmddriver to push a non-standard path to the front of PYTHONPATH, pulling in just the flux python modules without inadvertently pulling in other unwanted modules. Fixes flux-framework#1999
Change the INSTALLED_PYTHON_PATH conf variable to use `fluxpylinkdir` instead of `pexecdir`. This will allow the flux(1) cmddriver to push a non-standard path to the front of PYTHONPATH, pulling in just the flux python modules without inadvertently pulling in other unwanted modules. Fixes flux-framework#1999
Change the INSTALLED_PYTHON_PATH conf variable to use `fluxpylinkdir` instead of `pexecdir`. This will allow the flux(1) cmddriver to push a non-standard path to the front of PYTHONPATH, pulling in just the flux python modules without inadvertently pulling in other unwanted modules. Fixes #1999
From a side-installed flux ( /usr/global/tools/flux/toss_3_x86_64_ib/default/bin/flux):
The above has a minimal side effect.
From /usr/bin/flux:
The above PYTHONPATH is for the system python that has a lot of other extra packages that will cause issues with non-system (tce) pythons, which our applications are using. As a result, this user cannot run a large multiphysics code.
From the user who hit this:
The text was updated successfully, but these errors were encountered: