radical-cybertools / radical.pilot

RADICAL-Pilot
http://radical-cybertools.github.io/radical-pilot/index.html
Other
54 stars 23 forks source link

Flux LM to auto-set `PYTHONPATH` #3149

Closed andre-merzky closed 6 months ago

mtitov commented 6 months ago

Possible solutions

(1)

#!/usr/bin/env -S flux python

import flux
# script that needs flux bindings

(2) flux python -c 'import flux; print(flux.__file__)'


if we set PYTHONPATH for flux in LM, then it should be unset for each task