Repository: mesos Updated Branches: refs/heads/master 237a121c4 -> ddab02d76
Fixed CLI bootstrap script to work with long workspace paths. If the absolute path to the Python interpreter is long, it may exceed the maximum length allowed for a shebang line (limit set to 128 on many Linux distributions). When the shebang length limit is exceeded, pip fails with the error: "bad interpreter: No such file or directory". A work-around for this problem is to run the pip library module which is what we do in this patch. This will also be done to use PyInstaller. Review: https://reviews.apache.org/r/65705/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ddab02d7 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ddab02d7 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ddab02d7 Branch: refs/heads/master Commit: ddab02d76c882ebca343f94326ef64ec62c8fed3 Parents: 237a121 Author: Armand Grillet <agril...@mesosphere.io> Authored: Thu Apr 12 15:05:33 2018 +0200 Committer: Kevin Klues <klue...@gmail.com> Committed: Thu Apr 12 15:05:33 2018 +0200 ---------------------------------------------------------------------- src/python/cli_new/bootstrap | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/ddab02d7/src/python/cli_new/bootstrap ---------------------------------------------------------------------- diff --git a/src/python/cli_new/bootstrap b/src/python/cli_new/bootstrap index b30db50..87ac3ca 100755 --- a/src/python/cli_new/bootstrap +++ b/src/python/cli_new/bootstrap @@ -66,10 +66,10 @@ SITE_PACKAGES=$(python -c "from distutils.sysconfig import get_python_lib; print echo ${SITE_PACKAGES} echo "${CURRDIR}/lib" > ${SITE_PACKAGES}/_virtualenv_path_extensions.pth echo "${CURRDIR}/../lib" >> ${SITE_PACKAGES}/_virtualenv_path_extensions.pth -pip install --upgrade pip -pip install -r ${CURRDIR}/pip-requirements.txt -pip install -r ${CURRDIR}/../lib/requirements.in -pip install -r ${CURRDIR}/../lib/requirements-test.in +python -m pip install --upgrade pip +python -m pip install -r ${CURRDIR}/pip-requirements.txt +python -m pip install -r ${CURRDIR}/../lib/requirements.in +python -m pip install -r ${CURRDIR}/../lib/requirements-test.in deactivate # Add custom postactivate / predeactivate scripts to add / remove