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
12c3b8cb
Commit
12c3b8cb
authored
Mar 14, 2017
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove legacy code
parent
0fadebf7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
compile
bin/compile
+1
-12
No files found.
bin/compile
View file @
12c3b8cb
...
...
@@ -27,14 +27,9 @@ BUILD_DIR=$1
CACHE_DIR
=
$2
ENV_DIR
=
$3
# Static configurations for virtualenv caches.
VIRTUALENV_LOC
=
".heroku/venv"
LEGACY_TRIGGER
=
"lib/python2.7"
DEFAULT_PYTHON_VERSION
=
"python-2.7.13"
DEFAULT_PYTHON_STACK
=
"cedar-14"
PYTHON_EXE
=
"/app/.heroku/python/bin/python"
PIP_VERSION
=
"9.0.1"
# Common Problem Warnings
export
WARNINGS_LOG
=
$(
mktemp
)
...
...
@@ -46,7 +41,7 @@ export PATH=$PATH:$ROOT_DIR/vendor/
# Setup pip-pop (pip-diff)
export
PATH
=
$PATH
:
$ROOT_DIR
/vendor/pip-pop
# Support
Anvil Build_IDs
# Support
for other platforms.
[
!
"
$SLUG_ID
"
]
&&
SLUG_ID
=
"defaultslug"
[
!
"
$REQUEST_ID
"
]
&&
REQUEST_ID
=
$SLUG_ID
[
!
"
$STACK
"
]
&&
STACK
=
$DEFAULT_PYTHON_STACK
...
...
@@ -118,10 +113,6 @@ fi
# Prepare the cache.
mkdir
-p
$CACHE_DIR
# Purge "old-style" virtualenvs.
[
-d
$CACHE_DIR
/
$LEGACY_TRIGGER
]
&&
rm
-fr
$CACHE_DIR
/.heroku/bin
$CACHE_DIR
/.heroku/lib
$CACHE_DIR
/.heroku/include
[
-d
$CACHE_DIR
/
$VIRTUALENV_LOC
]
&&
rm
-fr
$CACHE_DIR
/.heroku/venv
$CACHE_DIR
/.heroku/src
# Restore old artifacts from the cache.
mkdir
-p
.heroku
...
...
@@ -224,7 +215,6 @@ rm -rf $CACHE_DIR/.heroku/python
rm
-rf
$CACHE_DIR
/.heroku/python-version
rm
-rf
$CACHE_DIR
/.heroku/python-stack
rm
-rf
$CACHE_DIR
/.heroku/vendor
rm
-rf
$CACHE_DIR
/.heroku/venv
rm
-rf
$CACHE_DIR
/.heroku/src
mkdir
-p
$CACHE_DIR
/.heroku
...
...
@@ -232,7 +222,6 @@ cp -R .heroku/python $CACHE_DIR/.heroku/
cp
-R
.heroku/python-version
$CACHE_DIR
/.heroku/
cp
-R
.heroku/python-stack
$CACHE_DIR
/.heroku/ &> /dev/null
||
true
cp
-R
.heroku/vendor
$CACHE_DIR
/.heroku/ &> /dev/null
||
true
cp
-R
.heroku/venv
$CACHE_DIR
/.heroku/ &> /dev/null
||
true
if
[[
-d
.heroku/src
]]
;
then
cp
-R
.heroku/src
$CACHE_DIR
/.heroku/ &> /dev/null
||
true
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