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
5be33758
Commit
5be33758
authored
Oct 29, 2015
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cache'
parents
41a44272
6b3f6325
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
compile
bin/compile
+22
-10
No files found.
bin/compile
View file @
5be33758
...
...
@@ -19,9 +19,6 @@ BUILD_DIR=$1
CACHE_DIR
=
$2
ENV_DIR
=
$3
CACHED_DIRS
=
".heroku"
# Static configurations for virtualenv caches.
VIRTUALENV_LOC
=
".heroku/venv"
LEGACY_TRIGGER
=
"lib/python2.7"
...
...
@@ -145,9 +142,14 @@ bpwatch stop clear_old_venvs
# Restore old artifacts from the cache.
bpwatch start restore_cache
for
dir
in
$CACHED_DIRS
;
do
cp
-R
$CACHE_DIR
/
$dir
.
&> /dev/null
||
true
done
mkdir
-p
.heroku
cp
-R
$CACHE_DIR
/.heroku/python .heroku/ &> /dev/null
||
true
cp
-R
$CACHE_DIR
/.heroku/python-stack .heroku/ &> /dev/null
||
true
cp
-R
$CACHE_DIR
/.heroku/python-version .heroku/ &> /dev/null
||
true
cp
-R
$CACHE_DIR
/.heroku/vendor .heroku/ &> /dev/null
||
true
cp
-R
$CACHE_DIR
/.heroku/venv .heroku/ &> /dev/null
||
true
bpwatch stop restore_cache
set
+e
...
...
@@ -209,10 +211,20 @@ bpwatch stop post_compile
# Store new artifacts in cache.
bpwatch start dump_cache
for
dir
in
$CACHED_DIRS
;
do
rm
-rf
$CACHE_DIR
/
$dir
cp
-R
$dir
$CACHE_DIR
/
done
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
mkdir
-p
$CACHE_DIR
/.heroku
cp
-R
.heroku/python
$CACHE_DIR
/.heroku/
cp
-R
.heroku/python-version
$CACHE_DIR
/.heroku/
cp
-R
.heroku/python-stack
$CACHE_DIR
/.heroku/
cp
-R
.heroku/vendor
$CACHE_DIR
/.heroku/ &> /dev/null
||
true
cp
-R
.heroku/venv
$CACHE_DIR
/.heroku/ &> /dev/null
||
true
bpwatch stop dump_cache
# ### Fin.
...
...
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