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
1687f1cf
Commit
1687f1cf
authored
Dec 20, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
2f0263a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
30 deletions
+1
-30
compile
bin/compile
+1
-30
No files found.
bin/compile
View file @
1687f1cf
...
@@ -80,7 +80,7 @@ BUILD_DIR=$APP_DIR
...
@@ -80,7 +80,7 @@ BUILD_DIR=$APP_DIR
# Prepend proper path buildpack use.
# Prepend proper path buildpack use.
export
PATH
=
$BUILD_DIR
/.heroku/python/bin:
$PATH
export
PATH
=
$BUILD_DIR
/.heroku/python/bin:
$PATH
# ls $BUILD_DIR
export
PYTHONUNBUFFERED
=
1
# ## Build Time
# ## Build Time
#
#
...
@@ -120,15 +120,8 @@ set +e
...
@@ -120,15 +120,8 @@ set +e
mkdir
.heroku &> /dev/null
mkdir
.heroku &> /dev/null
set
-e
set
-e
# Buildpack profile init script
mkdir
-p
$(
dirname
$PROFILE_PATH
)
mkdir
-p
$(
dirname
$PROFILE_PATH
)
# ### Virtualenv Setup
#
# Create the virtualenv. Rebuild if corrupt.
# TODO: Bootstrap a bottled Python VM...
set
+e
set
+e
PYTHON_VERSION
=
$(
cat
runtime.txt
)
PYTHON_VERSION
=
$(
cat
runtime.txt
)
puts-step
"Preparing Python runtime (
$PYTHON_VERSION
)"
puts-step
"Preparing Python runtime (
$PYTHON_VERSION
)"
...
@@ -145,7 +138,6 @@ fi
...
@@ -145,7 +138,6 @@ fi
if
[
!
"
$SKIP_INSTALL
"
]
;
then
if
[
!
"
$SKIP_INSTALL
"
]
;
then
puts-step
"Installing runtime
$PYTHON_VERSION
"
curl http://envy-versions.s3.amazonaws.com/
$PYTHON_VERSION
.tar.bz2
-s
|
tar
jx
>
/dev/null
curl http://envy-versions.s3.amazonaws.com/
$PYTHON_VERSION
.tar.bz2
-s
|
tar
jx
>
/dev/null
mv
python .heroku/python
mv
python .heroku/python
...
@@ -153,33 +145,12 @@ if [ ! "$SKIP_INSTALL" ]; then
...
@@ -153,33 +145,12 @@ if [ ! "$SKIP_INSTALL" ]; then
echo
$PYTHON_VERSION
>
.heroku/python-version
echo
$PYTHON_VERSION
>
.heroku/python-version
# Prepare it for the real world
# Prepare it for the real world
# curl -O http://python-distribute.org/distribute_setup.py
# echo path
# echo $PATH
# ls /app/.heroku/python/bin
hash
-r
hash
-r
python
$ROOT_DIR
/vendor/distribute-0.6.32/distribute_setup.py &> /dev/null
python
$ROOT_DIR
/vendor/distribute-0.6.32/distribute_setup.py &> /dev/null
hash
-r
hash
-r
easy_install
$ROOT_DIR
/vendor/pip-1.2.1.tar.gz &> /dev/null
easy_install
$ROOT_DIR
/vendor/pip-1.2.1.tar.gz &> /dev/null
fi
fi
# puts-step "Creating Virtualenv ($(virtualenv --version))"
# # Try to create the virtualenv.
# OUT=$(virtualenv --python $PYTHON_EXE --distribute --never-download --prompt='(venv) ' $VIRTUALENV_LOC 2>&1)
# [ $? -ne 0 -o -n "$CLEAN_VIRTUALENV" ] && {
# if [ -n "$CLEAN_VIRTUALENV" ]
# then echo " ! CLEAN_VIRTUALENV set, rebuilding virtualenv."
# else echo " ! Virtualenv corrupt, rebuilding."
# fi
# rm -fr $VIRTUALENV_LOC &> /dev/null || true
# OUT=$(virtualenv --python $PYTHON_EXE --distribute --never-download --prompt='(venv) ' $VIRTUALENV_LOC )
# }
# echo "$OUT" | cleanup | indent
set
-e
set
-e
# Pylibmc support.
# Pylibmc support.
...
...
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