conda-forge / pysr-feedstock

A conda-smithy repository for pysr.
BSD 3-Clause "New" or "Revised" License
0 stars 6 forks source link

Set `CONDA_JL_HOME`? #88

Closed MilesCranmer closed 1 year ago

MilesCranmer commented 1 year ago

@ngam @mkitti do we need to set CONDA_JL_HOME anywhere? I noticed this part of Conda.jl's README:

Using a pre-existing Conda installation

To use a pre-existing Conda installation, first create an environment for Conda.jl and then set the CONDA_JL_HOME environment variable to the full path of the environment. (You have to rebuild Conda.jl and many of the packages that use it after this.) In Julia, run:

julia> run(`conda create -n conda_jl python conda`)

julia> ENV["CONDA_JL_HOME"] = "/path/to/miniconda/envs/conda_jl"  # change this to your path

pkg> build Conda

Perhaps we don't, but I was just curious.

mkitti commented 1 year ago

We do in activate.sh

export CONDA_JL_HOME=$CONDA_PREFIX

https://github.com/conda-forge/julia-feedstock/blob/main/recipe/scripts/activate.sh#L31

MilesCranmer commented 1 year ago

Okay, that is great. Thanks!