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
d96914ab
Commit
d96914ab
authored
Oct 15, 2015
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore master's compile script
parent
4c4e1923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
33 deletions
+8
-33
compile
bin/compile
+8
-33
No files found.
bin/compile
View file @
d96914ab
...
...
@@ -20,7 +20,7 @@ CACHE_DIR=$2
ENV_DIR
=
$3
CACHED_DIR
=
".heroku"
CACHED_DIR
S
=
".heroku"
# Static configurations for virtualenv caches.
VIRTUALENV_LOC
=
".heroku/venv"
...
...
@@ -145,18 +145,9 @@ bpwatch stop clear_old_venvs
# Restore old artifacts from the cache.
bpwatch start restore_cache
# cp -R $CACHE_DIR/$CACHED_DIR . &> /dev/null || true
ls
-a
$CACHE_DIR
# python vendor python-stack python-version venv
cp
-R
$CACHE_DIR
/
$CACHED_DIR
/python
$CACHED_DIR
/python &> /dev/null
||
true
cp
-R
$CACHE_DIR
/
$CACHED_DIR
/python-stack
$CACHED_DIR
/python-stack &> /dev/null
||
true
cp
-R
$CACHE_DIR
/
$CACHED_DIR
/python-version
$CACHED_DIR
/python-version &> /dev/null
||
true
cp
-R
$CACHE_DIR
/
$CACHED_DIR
/vendor
$CACHED_DIR
/vendor &> /dev/null
||
true
cp
-R
$CACHE_DIR
/
$CACHED_DIR
/venv
$CACHED_DIR
/venv &> /dev/null
||
true
for
dir
in
$CACHED_DIRS
;
do
cp
-R
$CACHE_DIR
/
$dir
.
&> /dev/null
||
true
done
bpwatch stop restore_cache
set
+e
...
...
@@ -218,26 +209,10 @@ bpwatch stop post_compile
# Store new artifacts in cache.
bpwatch start dump_cache
mkdir
-p
$CACHE_DIR
/
$CACHED_DIR
# python vendor python-stack python-version venv
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
/python
cp
-R
$CACHED_DIR
/python
$CACHE_DIR
/
$CACHED_DIR
/python
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
/python-stack
cp
-R
$CACHED_DIR
/python-stack
$CACHE_DIR
/
$CACHED_DIR
/python-stack
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
/python-version
cp
-R
$CACHED_DIR
/python-version
$CACHE_DIR
/
$CACHED_DIR
/python-version
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
/vendor
cp
-R
$CACHED_DIR
/vendor
$CACHE_DIR
/
$CACHED_DIR
/vendor &> /dev/null
||
true
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
/venv
cp
-R
$CACHED_DIR
/venv
$CACHE_DIR
/
$CACHED_DIR
/venv &> /dev/null
||
true
mkdir
-p
$CACHE_DIR
/
$CACHED_DIR
for
dir
in
$CACHED_DIRS
;
do
rm
-rf
$CACHE_DIR
/
$dir
cp
-R
$dir
$CACHE_DIR
/
done
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