Skip to content
Snippets Groups Projects
Commit 29aeefeb authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

improvements to pipenv python version detection


Signed-off-by: default avatarKenneth Reitz <me@kennethreitz.org>
parent 2b767136
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,12 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
if [[ -f $BUILD_DIR/Pipfile.lock ]]; then
set +e
PYTHON=$(jq -r '._meta.requires.python_full_version' "$BUILD_DIR/Pipfile.lock")
if [[ "$PYTHON" != "null" ]]; then
echo "$PYTHON" > "$BUILD_DIR/runtime.txt"
fi
set -e
if [[ ! "$PYTHON" ]]; then
if [[ "$PYTHON" != "null" ]]; then
PYTHON=$(jq -r '._meta.requires.python_version' "$BUILD_DIR/Pipfile.lock")
if [ "$PYTHON" = 2.7 ]; then
echo "python-2.7.14" > "$BUILD_DIR/runtime.txt"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment