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
b55a5e5e
Commit
b55a5e5e
authored
Jun 02, 2014
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python-2.7.7, new build infrastructure
parent
68acbb06
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
compile
bin/compile
+7
-4
No files found.
bin/compile
View file @
b55a5e5e
...
@@ -25,7 +25,7 @@ VIRTUALENV_LOC=".heroku/venv"
...
@@ -25,7 +25,7 @@ VIRTUALENV_LOC=".heroku/venv"
LEGACY_TRIGGER
=
"lib/python2.7"
LEGACY_TRIGGER
=
"lib/python2.7"
PROFILE_PATH
=
"
$BUILD_DIR
/.profile.d/python.sh"
PROFILE_PATH
=
"
$BUILD_DIR
/.profile.d/python.sh"
DEFAULT_PYTHON_VERSION
=
"python-2.7.
6
"
DEFAULT_PYTHON_VERSION
=
"python-2.7.
7
"
PYTHON_EXE
=
"/app/.heroku/python/bin/python"
PYTHON_EXE
=
"/app/.heroku/python/bin/python"
PIP_VERSION
=
"1.5.6"
PIP_VERSION
=
"1.5.6"
SETUPTOOLS_VERSION
=
"3.6"
SETUPTOOLS_VERSION
=
"3.6"
...
@@ -110,7 +110,6 @@ fi
...
@@ -110,7 +110,6 @@ fi
# If no runtime given, assume default version.
# If no runtime given, assume default version.
if
[
!
-f
runtime.txt
]
;
then
if
[
!
-f
runtime.txt
]
;
then
puts-step
"No runtime.txt provided; assuming
$DEFAULT_PYTHON_VERSION
."
echo
$DEFAULT_PYTHON_VERSION
>
runtime.txt
echo
$DEFAULT_PYTHON_VERSION
>
runtime.txt
fi
fi
...
@@ -156,13 +155,17 @@ fi
...
@@ -156,13 +155,17 @@ fi
if
[
!
"
$SKIP_INSTALL
"
]
;
then
if
[
!
"
$SKIP_INSTALL
"
]
;
then
bpwatch start install_python
bpwatch start install_python
puts-step
"Preparing Python runtime (
$PYTHON_VERSION
)"
puts-step
"Preparing Python runtime (
$PYTHON_VERSION
)"
curl http://envy-versions.s3.amazonaws.com/
$PYTHON_VERSION
.tar.bz2
-s
|
tar
jx &> /dev/null
# Prepare destination directory.
mkdir
-p
.heroku/python
curl http://lang-python.s3.amazonaws.com/runtimes/
$PYTHON_VERSION
.tar.gz
-s
|
tar
zxv
-C
.heroku/python &> /dev/null
if
[[
$?
!=
0
]]
;
then
if
[[
$?
!=
0
]]
;
then
puts-warn
"Requested runtime (
$PYTHON_VERSION
) was not found."
puts-warn
"Requested runtime (
$PYTHON_VERSION
) was not found."
puts-warn
"Aborting. More info: https://devcenter.heroku.com/articles/python-support"
puts-warn
"Aborting. More info: https://devcenter.heroku.com/articles/python-support"
exit
1
exit
1
fi
fi
mv
python .heroku/python
bpwatch stop install_python
bpwatch stop install_python
# Record for future reference.
# Record for future reference.
...
...
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