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
1aad2138
Commit
1aad2138
authored
Mar 08, 2013
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pip if it is out of date
parent
686ee087
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
compile
bin/compile
+13
-8
No files found.
bin/compile
View file @
1aad2138
...
...
@@ -27,6 +27,8 @@ PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh"
# Python version. This will be used in the future to specify custom Pythons.
DEFAULT_PYTHON_VERSION
=
"python-2.7.3"
PYTHON_EXE
=
"/app/.heroku/python/bin/python"
PIP_VERSION
=
"1.3.1"
DISTRIBUTE_VERSION
=
"0.6.35"
# Sanitizing environment variables.
unset
GIT_DIR PYTHONHOME PYTHONPATH LD_LIBRARY_PATH LIBRARY_PATH
...
...
@@ -124,20 +126,23 @@ if [ ! "$SKIP_INSTALL" ]; then
echo
$PYTHON_VERSION
>
.heroku/python-version
WORKING_DIR
=
$(
pwd
)
hash
-r
else
puts-step
"Using Python runtime (
$PYTHON_VERSION
)"
fi
# If Pip isn't up to date:
if
[[
!
$(
pip
--version
)
==
*
$PIP_VERSION
*
]]
;
then
# Prepare it for the real world
puts-step
"Installing Distribute (
0.6.35
)"
cd
$ROOT_DIR
/vendor/distribute-
0.6.35
/
puts-step
"Installing Distribute (
$DISTRIBUTE_VERSION
)"
cd
$ROOT_DIR
/vendor/distribute-
$DISTRIBUTE_VERSION
/
python setup.py
install
&> /dev/null
cd
$WORKING_DIR
puts-step
"Installing Pip (
1.3.1
)"
cd
$ROOT_DIR
/vendor/pip-
1.3.1
/
puts-step
"Installing Pip (
$PIP_VERSION
)"
cd
$ROOT_DIR
/vendor/pip-
$PIP_VERSION
/
python setup.py
install
&> /dev/null
cd
$WORKING_DIR
hash
-r
else
puts-step
"Using Python runtime (
$PYTHON_VERSION
)"
fi
set
-e
...
...
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