Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
heroku-buildpack-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Evili del Rio i Silvan
heroku-buildpack-python
Commits
ef59b5ad
Commit
ef59b5ad
authored
13 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
$CACHED_DIRS
parent
98741a06
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/compile
+4
-4
4 additions, 4 deletions
bin/compile
with
4 additions
and
4 deletions
bin/compile
+
4
−
4
View file @
ef59b5ad
...
@@ -41,6 +41,7 @@ CACHE_DIR=$2
...
@@ -41,6 +41,7 @@ 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'
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.
...
@@ -104,13 +105,12 @@ mkdir -p $CACHE_DIR
...
@@ -104,13 +105,12 @@ mkdir -p $CACHE_DIR
# Nice defaults.
# Nice defaults.
LEGACY_VIRTUALENV
=
false
LEGACY_VIRTUALENV
=
false
VIRTUALENV_LOC
=
$MODERN_VIRTUALENV_LOC
VIRTUALENV_LOC
=
$MODERN_VIRTUALENV_LOC
CACHE_DIRS
=
'.heroku'
# Support "old-style" virtualenvs.
# Support "old-style" virtualenvs.
if
[
-f
$CACHE_DIR
/
$LEGACY_VIRTUALENV_TRIGGER
]
;
do
if
[
-f
$CACHE_DIR
/
$LEGACY_VIRTUALENV_TRIGGER
]
;
do
LEGACY_VIRTUALENV
=
true
LEGACY_VIRTUALENV
=
true
VIRTUALENV_LOC
=
$LEGACY_VIRTUALENV_LOC
VIRTUALENV_LOC
=
$LEGACY_VIRTUALENV_LOC
CACHE_DIRS
=
$LEGACY_VIRTUALENV_DIRS
CACHE
D
_DIRS
=
$LEGACY_VIRTUALENV_DIRS
# Warn for a checked-in virtualenv.
# Warn for a checked-in virtualenv.
if
[
-d
"lib"
]
||
[
-d
"bin"
]
;
then
if
[
-d
"lib"
]
||
[
-d
"bin"
]
;
then
...
@@ -126,8 +126,8 @@ if [-f $CACHE_DIR/$LEGACY_VIRTUALENV_TRIGGER]; do
...
@@ -126,8 +126,8 @@ if [-f $CACHE_DIR/$LEGACY_VIRTUALENV_TRIGGER]; do
done
done
# Restore old artifacts from the cache.
# Restore old artifacts from the cache.
for
dir
in
$CACHE_DIRS
;
do
for
dir
in
$CACHE
D
_DIRS
;
do
cp
-R
$CACHE_DIR
/
$dir
.
&> /dev/null
||
true
cp
-R
$CACHE
D
_DIR
/
$dir
.
&> /dev/null
||
true
done
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment