-
Notifications
You must be signed in to change notification settings - Fork 414
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
#245 fixed different python versions #255
base: master
Are you sure you want to change the base?
Conversation
We refactored |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also need to replace sudo
invocations with $SUDO
install.sh
Outdated
@@ -137,7 +139,8 @@ if [ "${BACKEND_GDB}" -eq 1 ]; then | |||
GDB_PYTHON=$(${GDB} -batch -q --nx -ex 'pi import sys; print(sys.executable)') | |||
GDB_PYTHON="${GDB_PYTHON/%$GDB_PYVER/}${GDB_PYVER}" | |||
|
|||
install_packages | |||
install_packages $PYVER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will throw a missing python-dev
package on Debian bullseye and newer.
Keeping only next line L#143 is enough
install.sh
Outdated
@@ -182,7 +185,8 @@ if [ "${BACKEND_LLDB}" -eq 1 ]; then | |||
LLDB_SITE_PACKAGES=$(${LLDB} -Qxb --one-line 'script import site; print(site.getusersitepackages())'|tail -1) | |||
fi | |||
|
|||
install_packages | |||
install_packages $PYVER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
7af2acd
to
15046c8
Compare
@@ -108,7 +108,8 @@ function install_apt { | |||
if [ -z "${SKIP_UPDATE}" ]; then | |||
sudo apt-get update | |||
fi | |||
if echo $PYVER|grep "3\."; then | |||
_PYVER=$1 | |||
if echo $_PYVER|grep "3\."; then | |||
sudo apt-get -y install libreadline6-dev python3-dev python3-setuptools python3-yaml python3-pip | |||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sudo -> ${SUDO}
Since in containers there is no sudo typically installed.
@@ -132,7 +133,8 @@ function install_yum { | |||
PARAMS="$PARAMS --refresh" | |||
fi | |||
|
|||
if echo $PYVER|grep "3\."; then | |||
_PYVER=$1 | |||
if echo $_PYVER|grep "3\."; then | |||
sudo $CMD $PARAMS install readline-devel python3-devel python3-setuptools python3-yaml python3-pip | |||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please replace unconditional sudo invocations with ${SUDO}, too. For example, running Voltron in a rootless container is totally fine but there is no sudo nor anybother setuid executable installed.
Fixed |
@zcutlip ? |
See #245