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

Unconditionally set PYTHONPATH and PYTHONHOME in sage-env #12291

Closed
jdemeyer opened this issue Jan 10, 2012 · 2 comments
Closed

Unconditionally set PYTHONPATH and PYTHONHOME in sage-env #12291

jdemeyer opened this issue Jan 10, 2012 · 2 comments

Comments

@jdemeyer
Copy link

sage-env contains:

if [ -d "$SAGE_ROOT/local/lib/python" ]; then
    PYTHONPATH="$SAGE_ROOT/local/lib/python"
    if [ -n "$SAGE_PATH" ]; then
        PYTHONPATH="$SAGE_PATH:$PYTHONPATH"
    fi
    PYTHONHOME="$SAGE_ROOT/local"
    export PYTHONPATH
    export PYTHONHOME
fi

I see no reason to set these environment variables only if Python is already installed. On the contrary, I think they are good to have during the "testing" part of the Python spkg.

Component: scripts

Issue created by migration from https://trac.sagemath.org/ticket/12291

@jdemeyer
Copy link
Author

Attachment: 12291_python_env.patch.gz

@jdemeyer
Copy link
Author

comment:1

Never mind, this can actually cause build failures of Python.

@jdemeyer jdemeyer removed this from the sage-5.0 milestone Jan 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant