Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
9c2bbd10
Unverified
Commit
9c2bbd10
authored
6 years ago
by
Casey
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #741 from heroku/fix-python-check
Fix Python 3.6 message when using Python 3.7
parents
567cf2c3
e5d9ed25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
bin/steps/python
+27
-8
27 additions, 8 deletions
bin/steps/python
with
31 additions
and
8 deletions
CHANGELOG.md
+
4
−
0
View file @
9c2bbd10
# Python Buildpack Changelog
# 139
Improvements to Python install messaging
# 138 (2018-08-01)
Use stack image SQLite3 instead of vendoring
...
...
This diff is collapsed.
Click to expand it.
bin/steps/python
+
27
−
8
View file @
9c2bbd10
...
...
@@ -12,17 +12,34 @@ if [[ $PYTHON_VERSION =~ ^python-2 ]]; then
puts-warn
"The latest version of Python 2 is
$LATEST_2
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_2
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
echo
" Using supported version of Python 2 (
$PYTHON_VERSION
)"
fi
else
if
[[
$PYTHON_VERSION
=
~ ^python-3.7
]]
&&
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]]
;
then
puts-warn
"The latest version of Python 3.7 is
$LATEST_37
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_37
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
if
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_36
"
]]
;
then
puts-warn
"The latest version of Python 3.6 is
$LATEST_36
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_36
)."
if
[[
$PYTHON_VERSION
=
~ ^python-3
]]
;
then
if
[[
$PYTHON_VERSION
=
~ ^python-3.7
]]
;
then
if
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]]
;
then
puts-warn
"The latest version of Python 3.7 is
$LATEST_37
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_37
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
echo
" Using supported version of Python 3.7 (
$PYTHON_VERSION
)"
fi
else
if
[[
$PYTHON_VERSION
=
~ ^python-3.6
]]
;
then
if
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_36
"
]]
;
then
puts-warn
"The latest version of Python 3.6 is
$LATEST_36
(you are using
$PYTHON_VERSION
, which is unsupported)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_36
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
echo
" Using supported version of Python 3.6 (
$PYTHON_VERSION
)"
fi
else
puts-warn
"Heroku supports runtime versions
$LATEST_37
,
$LATEST_36
and
$LATEST_2
."
puts-warn
"You are using
$PYTHON_VERSION
, which is unsupported."
puts-warn
"We recommend upgrading by specifying the default supported version (
$LATEST_36
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
fi
fi
fi
fi
...
...
@@ -49,6 +66,7 @@ if [ -f .heroku/python-version ]; then
fi
fi
if
[
!
"
$SKIP_INSTALL
"
]
;
then
puts-step
"Installing
$PYTHON_VERSION
"
...
...
@@ -71,6 +89,7 @@ if [ ! "$SKIP_INSTALL" ]; then
hash
-r
fi
# If Pip isn't up to date:
if
[
"
$FRESH_PYTHON
"
]
||
[[
!
$(
pip
--version
)
==
*
$PIP_UPDATE
*
]]
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment