JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.47k stars 190 forks source link

Need manual deletion of prefs to trigger a proper re-build #870

Closed Moelf closed 3 years ago

Moelf commented 3 years ago

As the title says. Even when deleting deps.jl, if the .julia/prefs/PyCall hasn't changed, ]build will still proceed to build against the original python env.

Probably should add a check, if ENV doesn't match prefs, update both prefs and deps.jl

stevengj commented 3 years ago

I don't follow you. The PYTHON environment variable already takes precedence over the prefs file, no? I rebuild by changing PYTHON all the time, and I never manually delete any files.

Moelf commented 3 years ago

indeed that is the case, currently running into a bug that only exists in job submission container so it's a bit hard to debug sorry for the noise.

The goal is trying to relocate ~./julia and a Conda virtual environment in tarball and ship into the job executing environment, but for some reason, PyCall is not re-building properly.