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

Installer does not work when only python3 is available #788

Closed
dagewa opened this issue Sep 9, 2022 · 2 comments
Closed

Installer does not work when only python3 is available #788

dagewa opened this issue Sep 9, 2022 · 2 comments

Comments

@dagewa
Copy link
Member

dagewa commented Sep 9, 2022

Comes from dials/dials#2222; please see there for details

@bkpoon
Copy link
Member

bkpoon commented Sep 13, 2022

Is this the source installer or a binary installer? We had one Phenix user have a similar issue, but it was only for the source installer.

@ndevenish
Copy link
Contributor

INSTALL_SH = """\
#!/bin/bash
if [ -z "$PYTHON_EXE" ]; then
PYTHON_EXE='/usr/bin/python'
if [ -f "/usr/bin/python2.7" ]; then
PYTHON_EXE='/usr/bin/python2.7'
elif [ -f "/usr/bin/python2.6" ]; then
PYTHON_EXE='/usr/bin/python2.6'
elif [ -f "/usr/bin/python2" ]; then
PYTHON_EXE='/usr/bin/python2'
elif [ -f "./conda_base/bin/python" ]; then
PYTHON_EXE='./conda_base/bin/python'
fi
fi
$PYTHON_EXE ./bin/install.py $@
"""

@bkpoon bkpoon closed this as completed in 00281bb Oct 1, 2022
Trzs pushed a commit that referenced this issue Oct 28, 2022
…available

- Change default to /usr/bin/python3 if /usr/bin/python is not available
- Change calls to "python" or "/usr/bin/python" to sys.executable
- Fixes #788
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

3 participants