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
7b9bc848
Commit
7b9bc848
authored
Oct 13, 2015
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starting over
parent
921a4c31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
compile
bin/compile
+11
-16
No files found.
bin/compile
View file @
7b9bc848
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
# Fail fast and fail hard.
# Fail fast and fail hard.
set
-eo
pipefail
set
-eo
pipefail
shopt
-s
extglob
[
"
$BUILDPACK_XTRACE
"
]
&&
set
-o
xtrace
[
"
$BUILDPACK_XTRACE
"
]
&&
set
-o
xtrace
...
@@ -21,8 +20,7 @@ CACHE_DIR=$2
...
@@ -21,8 +20,7 @@ CACHE_DIR=$2
ENV_DIR
=
$3
ENV_DIR
=
$3
CACHED_DIR
=
".heroku"
CACHED_DIRS
=
".heroku"
WHITELISTED_CACHE_ENTRIES
=
"python|python-stack|python-version|venv|vendor"
# Static configurations for virtualenv caches.
# Static configurations for virtualenv caches.
VIRTUALENV_LOC
=
".heroku/venv"
VIRTUALENV_LOC
=
".heroku/venv"
...
@@ -147,7 +145,9 @@ bpwatch stop clear_old_venvs
...
@@ -147,7 +145,9 @@ bpwatch stop clear_old_venvs
# Restore old artifacts from the cache.
# Restore old artifacts from the cache.
bpwatch start restore_cache
bpwatch start restore_cache
cp
-R
$CACHE_DIR
/
$CACHED_DIR
.
&> /dev/null
||
true
for
dir
in
$CACHED_DIRS
;
do
cp
-R
$CACHE_DIR
/
$dir
.
&> /dev/null
||
true
done
bpwatch stop restore_cache
bpwatch stop restore_cache
set
+e
set
+e
...
@@ -207,6 +207,13 @@ bpwatch start post_compile
...
@@ -207,6 +207,13 @@ bpwatch start post_compile
source
$BIN_DIR
/steps/hooks/post_compile
source
$BIN_DIR
/steps/hooks/post_compile
bpwatch stop post_compile
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
bpwatch stop dump_cache
# ### Fin.
# ### Fin.
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
if
[[
!
"
$DOCKER_BUILD
"
]]
;
then
...
@@ -225,15 +232,3 @@ if [[ ! "$DOCKER_BUILD" ]]; then
...
@@ -225,15 +232,3 @@ if [[ ! "$DOCKER_BUILD" ]]; then
bpwatch stop compile
bpwatch stop compile
fi
fi
# Remove all non-whitelisted objects from cache.
cd
$CACHED_DIR
find
.
-type
f
-not
\(
-name
'python'
-or
-name
'python-version'
-or
-name
'python-stack'
-or
-name
'vendor'
-or
-name
'venv'
\)
-delete
cd
$BUILD_DIR
# Store new artifacts in cache.
bpwatch start dump_cache
rm
-rf
$CACHE_DIR
/
$CACHED_DIR
cp
-R
$CACHED_DIR
$CACHE_DIR
/
bpwatch stop dump_cache
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