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
8d4626ef
Commit
8d4626ef
authored
Mar 24, 2012
by
Kenneth Reitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
echo "copying $dir…"
parent
7c7d2bc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
compile
bin/compile
+6
-4
No files found.
bin/compile
View file @
8d4626ef
...
@@ -41,14 +41,14 @@ CACHE_DIR=$2
...
@@ -41,14 +41,14 @@ CACHE_DIR=$2
NAME
=
$(
$BIN_DIR
/detect
$BUILD_DIR
)
NAME
=
$(
$BIN_DIR
/detect
$BUILD_DIR
)
# Where to store the Pip download cache.
# Where to store the Pip download cache.
CACHED_DIRS
=
'.heroku'
CACHED_DIRS
=
".heroku"
PIP_DOWNLOAD_CACHE
=
${
PIP_DOWNLOAD_CACHE
:-
$CACHE_DIR
/pip_downloads
}
PIP_DOWNLOAD_CACHE
=
${
PIP_DOWNLOAD_CACHE
:-
$CACHE_DIR
/pip_downloads
}
# Static configurations for virtualenv caches.
# Static configurations for virtualenv caches.
LEGACY_VIRTUALENV_LOC
=
'.'
LEGACY_VIRTUALENV_LOC
=
"."
MODERN_VIRTUALENV_LOC
=
'.heroku/venv'
MODERN_VIRTUALENV_LOC
=
".heroku/venv"
LEGACY_VIRTUALENV_DIRS
=
"bin include lib"
LEGACY_VIRTUALENV_DIRS
=
"bin include lib"
LEGACY_VIRTUALENV_TRIGGER
=
'lib/python2.7'
LEGACY_VIRTUALENV_TRIGGER
=
"lib/python2.7"
# Python version. This will be used in the future to specify custom Pythons.
# Python version. This will be used in the future to specify custom Pythons.
...
@@ -123,6 +123,7 @@ fi
...
@@ -123,6 +123,7 @@ fi
# Restore old artifacts from the cache.
# Restore old artifacts from the cache.
for
dir
in
$CACHED_DIRS
;
do
for
dir
in
$CACHED_DIRS
;
do
echo
"copying
$dir
..."
cp
-R
$CACHED_DIR
/
$dir
.
&> /dev/null
||
true
cp
-R
$CACHED_DIR
/
$dir
.
&> /dev/null
||
true
done
done
...
@@ -196,6 +197,7 @@ set -e
...
@@ -196,6 +197,7 @@ set -e
# Store new artifacts in cache.
# Store new artifacts in cache.
for
dir
in
$CACHED_DIRS
;
do
for
dir
in
$CACHED_DIRS
;
do
echo
"copying
$dir
..."
rm
-rf
$CACHE_DIR
/
$dir
rm
-rf
$CACHE_DIR
/
$dir
cp
-R
$dir
$CACHE_DIR
/
cp
-R
$dir
$CACHE_DIR
/
done
done
...
...
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