Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Fix shebang length exceeded issue #4195

Closed
wants to merge 6 commits into from

Conversation

dkalinowski
Copy link
Contributor

@dkalinowski
Copy link
Contributor Author

TESTNOW

@@ -36,8 +36,8 @@ if [ "${PYTHON2_DETECTED}" == 1 ]; then
cd ${BUILD_DIR}
virtualenv -p "$(command -v python)" build/venv2
source build/venv2/bin/activate
pip install --upgrade setuptools pip wheel
python ${SOURCE_DIR}/setup.py bdist_wheel
build/venv2/bin/python build/venv2/bin/pip install --upgrade setuptools pip wheel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better define the path as a bash variable ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're calling build/venv2/bin/activate above, the pip and python executables should refer to the ones from venv2. What system isn't this working on for you? Is your venv2 directory so deeply nested?

Perhaps we could use this instead, to avoid hard-coding build/venv2/bin multiple times?
python -m pip
at worse:
build/venv2/bin/python -m pip

Copy link
Contributor

@aslepko aslepko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -36,8 +36,8 @@ if [ "${PYTHON2_DETECTED}" == 1 ]; then
cd ${BUILD_DIR}
virtualenv -p "$(command -v python)" build/venv2
source build/venv2/bin/activate
pip install --upgrade setuptools pip wheel
python ${SOURCE_DIR}/setup.py bdist_wheel
build/venv2/bin/python build/venv2/bin/pip install --upgrade setuptools pip wheel
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're calling build/venv2/bin/activate above, the pip and python executables should refer to the ones from venv2. What system isn't this working on for you? Is your venv2 directory so deeply nested?

Perhaps we could use this instead, to avoid hard-coding build/venv2/bin multiple times?
python -m pip
at worse:
build/venv2/bin/python -m pip

@diyessi diyessi removed the request for review from idlabuda January 28, 2020 15:37
@diyessi diyessi added the OV label Apr 8, 2020
@rkimballn1 rkimballn1 closed this May 27, 2020
@diyessi diyessi deleted the shebang-length-exceeded-fix branch June 9, 2020 20:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants