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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Django
heroku-buildpack-python
Commits
cbb7512c
Commit
cbb7512c
authored
10 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
cleanup build output a bit
parent
869576e8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/compile
+7
-10
7 additions, 10 deletions
bin/compile
with
7 additions
and
10 deletions
bin/compile
+
7
−
10
View file @
cbb7512c
...
...
@@ -101,7 +101,6 @@ bpwatch stop pre_compile
# If no requirements given, assume `setup.py develop`.
if
[
!
-f
requirements.txt
]
;
then
puts-step
"No requirements.txt provided; assuming dist package."
echo
"-e ."
>
requirements.txt
fi
...
...
@@ -152,7 +151,7 @@ PYTHON_VERSION=$(cat runtime.txt)
if
[
-f
.heroku/python-version
]
;
then
if
[
!
$(
cat
.heroku/python-version
)
=
$PYTHON_VERSION
]
;
then
bpwatch start uninstall_python
puts-step
"Found
$(
cat
.heroku/python-version
)
, removing
.
"
puts-step
"Found
runtime
$(
cat
.heroku/python-version
)
, removing"
rm
-fr
.heroku/python
bpwatch stop uninstall_python
else
...
...
@@ -162,7 +161,7 @@ fi
if
[
!
$STACK
=
$CACHED_PYTHON_STACK
]
;
then
bpwatch start uninstall_python
puts-step
"Stack changed, re-installing
$PYTHON_VERSION
.
"
puts-step
"Stack changed, re-installing
runtime (
$PYTHON_VERSION
)
"
rm
-fr
.heroku/python
unset
SKIP_INSTALL
bpwatch stop uninstall_python
...
...
@@ -171,14 +170,14 @@ fi
if
[
!
"
$SKIP_INSTALL
"
]
;
then
bpwatch start install_python
puts-step
"
Preparing Python
runtime (
$PYTHON_VERSION
)"
puts-step
"
Installing
runtime (
$PYTHON_VERSION
)"
# Prepare destination directory.
mkdir
-p
.heroku/python
curl http://lang-python.s3.amazonaws.com/
$STACK
/runtimes/
$PYTHON_VERSION
.tar.gz
-s
|
tar
zxv
-C
.heroku/python &> /dev/null
if
[[
$?
!=
0
]]
;
then
puts-warn
"Requested runtime (
$PYTHON_VERSION
) is not available
on the
$STACK
stack
."
puts-warn
"Requested runtime (
$PYTHON_VERSION
) is not available
for this stack (
$STACK
)
."
puts-warn
"Aborting. More info: https://devcenter.heroku.com/articles/python-support"
exit
1
fi
...
...
@@ -191,8 +190,6 @@ if [ ! "$SKIP_INSTALL" ]; then
FRESH_PYTHON
=
true
hash
-r
else
puts-step
"Using Python runtime (
$PYTHON_VERSION
)"
fi
# If Pip isn't up to date:
...
...
@@ -203,7 +200,7 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
bpwatch start install_setuptools
# Prepare it for the real world
puts-step
"Installing Setuptools (
$SETUPTOOLS_VERSION
)"
#
puts-step "Installing Setuptools ($SETUPTOOLS_VERSION)"
cd
$ROOT_DIR
/vendor/
tar
zxf setuptools-
$SETUPTOOLS_VERSION
.tar.gz
cd
$ROOT_DIR
/vendor/setuptools-
$SETUPTOOLS_VERSION
/
...
...
@@ -212,7 +209,7 @@ if [ "$FRESH_PYTHON" ] || [[ ! $(pip --version) == *$PIP_VERSION* ]]; then
bpwatch stop install_setuptoools
bpwatch start install_pip
puts-step
"Installing Pip (
$PIP_VERSION
)"
#
puts-step "Installing Pip ($PIP_VERSION)"
cd
$ROOT_DIR
/vendor/
tar
zxf pip-
$PIP_VERSION
.tar.gz
...
...
@@ -241,7 +238,7 @@ if (grep -Fiq "hg+" requirements.txt) then
fi
# Install dependencies with Pip.
puts-step
"Installing dependencies
using
Pip (
$PIP_VERSION
)"
puts-step
"Installing dependencies
with
Pip (
$PIP_VERSION
)"
[
!
"
$FRESH_PYTHON
"
]
&&
bpwatch start pip_install
...
...
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