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

specify python version in conda-pkgs.sh? #79

Open
sybenzvi opened this issue Mar 11, 2025 · 1 comment
Open

specify python version in conda-pkgs.sh? #79

sybenzvi opened this issue Mar 11, 2025 · 1 comment

Comments

@sybenzvi
Copy link

The conda installation command in conda-pkgs.sh does not specify the python version, so install.sh will grab whatever Python conda wants to provide. My installation just installed Python 3.12 but fiberassign won't compile with this version (we need 3.10).

An easy fix would be to include python=3.10 in the relevant line of conda-pkgs.sh.

@sybenzvi
Copy link
Author

Rethinking this, it's probably better to force a downgrade to python 3.10 directly in the desiconda installation script, right after conda is activated. A KPNO-specific fix with a guard for NERSC installations could look something like this:

...
source $CONDADIR/bin/activate
if [[ "$HOSTNAME" == "desi-7" ]] || [[ "$HOSTNAME" == "desi-8" ]]; then
    if [ "$USER" == "datasystems" ]; then
        conda install --copy --yes python=3.10
    else
        echo "At KPNO, must run as datasystems."
        return
    fi
fi
export PYVERSION=...

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

1 participant