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
8c16776d
Commit
8c16776d
authored
Mar 23, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
documentation improvements
parent
7e440598
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
compile
bin/compile
+9
-7
No files found.
bin/compile
View file @
8c16776d
#!/usr/bin/env bash
# This script serves as the **Python Buildpack** compiler.
# This script serves as the
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# compiler.
#
# A [buildpack](http://devcenter.heroku.m/articles/buildpacks) is an
# A [buildpack](http://devcenter.heroku.
co
m/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
# ## Usage
...
...
@@ -35,7 +37,7 @@ ROOT_DIR=$(dirname $BIN_DIR)
BUILD_DIR
=
$1
CACHE_DIR
=
$2
# The detected application type (
Python|Python/Django
).
# The detected application type (
`Python`|`Python/Django`
).
NAME
=
$(
$BIN_DIR
/detect
$BUILD_DIR
)
# Where to store the Pip download cache.
...
...
@@ -44,7 +46,7 @@ PIP_DOWNLOAD_CACHE=${PIP_DOWNLOAD_CACHE:-$CACHE_DIR/pip_downloads}
# The directories to include in the cache.
VIRTUALENV_DIRS
=
"bin include lib"
# Python version
s
. This will be used in the future to specify custom Pythons.
# Python version. This will be used in the future to specify custom Pythons.
PYTHON_VERSION
=
"2.7.2"
PYTHON_EXE
=
"python2.7"
...
...
@@ -125,13 +127,13 @@ echo "$OUT" | indent
set
-e
# Create set-aside
.heroku
folder.
# Create set-aside
`.heroku`
folder.
mkdir
-p
.heroku
# Pylibmc support.
source
$BIN_DIR
/steps/pylibmc
# Activate the
v
irtualenv.
# Activate the
V
irtualenv.
echo
"-----> Activating virtualenv"
source
bin/activate
...
...
@@ -141,7 +143,7 @@ if [ ! -f requirements.txt ]; then
echo
"-e ."
>
requirements.txt
fi
# Install Mercurial
,
if it appears to be required.
# Install Mercurial if it appears to be required.
if
(
grep
-Fiq
"hg+"
requirements.txt
)
then
pip
install
--use-mirrors
mercurial | indent
fi
...
...
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