mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
proper installations
This commit is contained in:
+18
-4
@@ -145,11 +145,25 @@ if [ ! "$SKIP_INSTALL" ]; then
|
||||
# Record for future reference.
|
||||
echo $PYTHON_VERSION > .heroku/python-version
|
||||
|
||||
WORKING_DIR=$(pwd)
|
||||
# Prepare it for the real world
|
||||
|
||||
puts-step "Installing Distribute (0.6.32)"
|
||||
cd $ROOT_DIR/vendor/distribute-0.6.32/
|
||||
python setup.py install &> /dev/null
|
||||
cd $WORKING_DIR
|
||||
|
||||
puts-step "Installing pip (1.2.1)"
|
||||
cd $ROOT_DIR/vendor/pip-1.2.1/
|
||||
python setup.py install &> /dev/null
|
||||
cd $WORKING_DIR
|
||||
|
||||
hash -r
|
||||
python $ROOT_DIR/vendor/distribute-0.6.32/distribute_setup.py &> /dev/null
|
||||
hash -r
|
||||
easy_install $ROOT_DIR/vendor/pip-1.2.1.tar.gz &> /dev/null
|
||||
# python $ROOT_DIR/vendor/distribute-0.6.32/distribute_setup.py &> /dev/null
|
||||
# hash -r
|
||||
# easy_install $ROOT_DIR/vendor/pip-1.2.1.tar.gz &> /dev/null
|
||||
else
|
||||
puts-step "Using Python runtime ($PYTHON_VERSION)"
|
||||
fi
|
||||
|
||||
set -e
|
||||
@@ -164,7 +178,7 @@ if (grep -Fiq "hg+" requirements.txt) then
|
||||
fi
|
||||
|
||||
# Install dependencies with Pip.
|
||||
puts-step "Installing dependencies using pip ($(pip --version | awk '{print $2}'))"
|
||||
puts-step "Installing dependencies using pip (1.2.1)"
|
||||
pip install --use-mirrors -r requirements.txt --exists-action=w --src=./.heroku/src | cleanup | indent
|
||||
|
||||
# Django collectstatic support.
|
||||
|
||||
Reference in New Issue
Block a user