Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-python
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-python
Commits
9c2bbd10
Unverified
Commit
9c2bbd10
authored
Sep 05, 2018
by
Casey
Committed by
GitHub
Sep 05, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #741 from heroku/fix-python-check
Fix Python 3.6 message when using Python 3.7
parents
567cf2c3
e5d9ed25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
8 deletions
+31
-8
CHANGELOG.md
CHANGELOG.md
+4
-0
python
bin/steps/python
+27
-8
No files found.
CHANGELOG.md
View file @
9c2bbd10
# Python Buildpack Changelog
# Python Buildpack Changelog
# 139
Improvements to Python install messaging
# 138 (2018-08-01)
# 138 (2018-08-01)
Use stack image SQLite3 instead of vendoring
Use stack image SQLite3 instead of vendoring
...
...
bin/steps/python
View file @
9c2bbd10
...
@@ -12,17 +12,34 @@ if [[ $PYTHON_VERSION =~ ^python-2 ]]; then
...
@@ -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
"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
)."
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_2
)."
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
else
echo
" Using supported version of Python 2 (
$PYTHON_VERSION
)"
fi
fi
else
else
if
[[
$PYTHON_VERSION
=
~ ^python-3.7
]]
&&
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]]
;
then
if
[[
$PYTHON_VERSION
=
~ ^python-3
]]
;
then
puts-warn
"The latest version of Python 3.7 is
$LATEST_37
(you are using
$PYTHON_VERSION
, which is unsupported)."
if
[[
$PYTHON_VERSION
=
~ ^python-3.7
]]
;
then
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_37
)."
if
[[
"
$PYTHON_VERSION
"
!=
"
$LATEST_37
"
]]
;
then
echo
" Learn More: https://devcenter.heroku.com/articles/python-runtimes"
puts-warn
"The latest version of Python 3.7 is
$LATEST_37
(you are using
$PYTHON_VERSION
, which is unsupported)."
else
puts-warn
"We recommend upgrading by specifying the latest version (
$LATEST_37
)."
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"
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
fi
fi
fi
...
@@ -49,6 +66,7 @@ if [ -f .heroku/python-version ]; then
...
@@ -49,6 +66,7 @@ if [ -f .heroku/python-version ]; then
fi
fi
fi
fi
if
[
!
"
$SKIP_INSTALL
"
]
;
then
if
[
!
"
$SKIP_INSTALL
"
]
;
then
puts-step
"Installing
$PYTHON_VERSION
"
puts-step
"Installing
$PYTHON_VERSION
"
...
@@ -71,6 +89,7 @@ if [ ! "$SKIP_INSTALL" ]; then
...
@@ -71,6 +89,7 @@ if [ ! "$SKIP_INSTALL" ]; then
hash
-r
hash
-r
fi
fi
# If Pip isn't up to date:
# If Pip isn't up to date:
if
[
"
$FRESH_PYTHON
"
]
||
[[
!
$(
pip
--version
)
==
*
$PIP_UPDATE
*
]]
;
then
if
[
"
$FRESH_PYTHON
"
]
||
[[
!
$(
pip
--version
)
==
*
$PIP_UPDATE
*
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment