-
Notifications
You must be signed in to change notification settings - Fork 422
#245 fixed different python versions #255
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
Open
layderv
wants to merge
1
commit into
snare:master
Choose a base branch
from
layderv:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,12 +106,13 @@ set -ex | |
| function install_apt { | ||
| if [ -n "${APT_GET}" ]; then | ||
| if [ -z "${SKIP_UPDATE}" ]; then | ||
| sudo apt-get update | ||
| ${SUDO} apt-get update | ||
| fi | ||
| if echo $PYVER|grep "3\."; then | ||
| sudo apt-get -y install libreadline6-dev python3-dev python3-setuptools python3-yaml python3-pip | ||
| _PYVER=$1 | ||
| if echo $_PYVER|grep "3\."; then | ||
| ${SUDO} apt-get -y install libreadline6-dev python3-dev python3-setuptools python3-yaml python3-pip | ||
| else | ||
| sudo apt-get -y install libreadline6-dev python-dev python-setuptools python-yaml python-pip | ||
| ${SUDO} apt-get -y install libreadline6-dev python-dev python-setuptools python-yaml python-pip | ||
| fi | ||
| fi | ||
| } | ||
|
|
@@ -132,17 +133,18 @@ function install_yum { | |
| PARAMS="$PARAMS --refresh" | ||
| fi | ||
|
|
||
| if echo $PYVER|grep "3\."; then | ||
| sudo $CMD $PARAMS install readline-devel python3-devel python3-setuptools python3-yaml python3-pip | ||
| _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 commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
| sudo $CMD $PARAMS install readline-devel python-devel python-setuptools python-yaml python-pip | ||
| ${SUDO} $CMD $PARAMS install readline-devel python-devel python-setuptools python-yaml python-pip | ||
| fi | ||
| fi | ||
| } | ||
|
|
||
| function install_packages { | ||
| install_apt | ||
| install_yum | ||
| install_apt $1 | ||
| install_yum $1 | ||
| } | ||
|
|
||
| function curl_get_pip { | ||
|
|
@@ -204,7 +206,7 @@ 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 $GDB_PYVER | ||
|
|
||
| if [ -z $USER_MODE ]; then | ||
| GDB_SITE_PACKAGES=$(${GDB} -batch -q --nx -ex 'pi import site; print(site.getsitepackages()[0])') | ||
|
|
@@ -247,7 +249,7 @@ if [ "${BACKEND_LLDB}" -eq 1 ]; then | |
| LLDB_SITE_PACKAGES=$(${LLDB} -Q -x -b --one-line 'script import site; print(site.getusersitepackages())'|tail -1) || quit "Failed to locate site-packages." 1 | ||
| fi | ||
|
|
||
| install_packages || quit "Failed to install packages." 1 | ||
| install_packages $LLDB_PYVER || quit "Failed to install packages." 1 | ||
|
|
||
| if [ "$LLDB_SITE_PACKAGES" == "$GDB_SITE_PACKAGES" ]; then | ||
| echo "Skipping installation for LLDB - same site-packages directory" | ||
|
|
@@ -284,7 +286,7 @@ if [ "${BACKEND_GDB}" -ne 1 ] && [ "${BACKEND_LLDB}" -ne 1 ]; then | |
| PYTHON_SITE_PACKAGES=$(${PYTHON} -c 'import site; print(site.getusersitepackages())') | ||
| fi | ||
|
|
||
| install_packages | ||
| install_packages $PYVER | ||
|
|
||
| # Install Voltron and dependencies | ||
| ${SUDO} ${PYTHON} -m pip install -U $USER_MODE $DEV_MODE . | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.