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
b55a5e5e
Commit
b55a5e5e
authored
11 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
python-2.7.7, new build infrastructure
parent
68acbb06
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/compile
+7
-4
7 additions, 4 deletions
bin/compile
with
7 additions
and
4 deletions
bin/compile
+
7
−
4
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.
...
...
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