Skip to content
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

How to disable the conda when building PyCall? #989

Closed
GTrunSec opened this issue May 21, 2022 · 1 comment
Closed

How to disable the conda when building PyCall? #989

GTrunSec opened this issue May 21, 2022 · 1 comment

Comments

@GTrunSec
Copy link

GTrunSec commented May 21, 2022

As a julia's Nix user, conda is a drag for me. Suppose that we have passed the python related Env, is there a convenient parameter to disable or detect conda processing>

Note: It works in a normal environment, but failed in the sandbox of the nix-build

const python = "/nix/store/nb91g6cfa8sd6z1z9kh94ksnd806ghkk-python3-3.9.11-env/bin/python3.9"
const libpython = "/nix/store/kwp97hvzh4dff613a4vhpbl6yblavshb-python3-3.9.11/lib/libpython3.9.so.1.0"
const pyprogramname = "/nix/store/nb91g6cfa8sd6z1z9kh94ksnd806ghkk-python3-3.9.11-env/bin/python3.9"
const pyversion_build = v"3.9.11"
const PYTHONHOME = "/nix/store/kwp97hvzh4dff613a4vhpbl6yblavshb-python3-3.9.11:/nix/store/kwp97hvzh4dff613a4vhp
bl6yblavshb-python3-3.9.11"

"True if we are using the Python distribution in the Conda package."
const conda = false
  • I did a dirty patch that disabled the conda compiling.

image

@stevengj
Copy link
Member

stevengj commented May 21, 2022

Just because the Conda.jl package is installed doesn't mean that it actually installs a conda python distro.

In fact, by default on Unix platforms, PyCall uses the system python3, so if this is in your PATH you should have to do nothing. Otherwise, you can set ENV["PYTHON"] when building PyCall for the first time and it should use that, and will never install its own Python distro.

(The Conda.jl package by itself is an extremely lightweight dependency, if it's not being used to install a Python distro.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants