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
5c4a414c
Commit
5c4a414c
authored
10 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
$STACK and $CACHED_PYTHON_STACK
parent
0e11dbad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/compile
+8
-0
8 additions, 0 deletions
bin/compile
with
8 additions
and
0 deletions
bin/compile
+
8
−
0
View file @
5c4a414c
...
@@ -40,6 +40,7 @@ BUILDPACK_VERSION=v28
...
@@ -40,6 +40,7 @@ BUILDPACK_VERSION=v28
# Support Anvil Build_IDs
# Support Anvil Build_IDs
[
!
"
$SLUG_ID
"
]
&&
SLUG_ID
=
"defaultslug"
[
!
"
$SLUG_ID
"
]
&&
SLUG_ID
=
"defaultslug"
[
!
"
$REQUEST_ID
"
]
&&
REQUEST_ID
=
$SLUG_ID
[
!
"
$REQUEST_ID
"
]
&&
REQUEST_ID
=
$SLUG_ID
[
!
"
$STACK
"
]
&&
STACK
=
$DEFAULT_PYTHON_STACK
# Sanitizing environment variables.
# Sanitizing environment variables.
unset
GIT_DIR PYTHONHOME PYTHONPATH LD_LIBRARY_PATH LIBRARY_PATH
unset
GIT_DIR PYTHONHOME PYTHONPATH LD_LIBRARY_PATH LIBRARY_PATH
...
@@ -109,6 +110,13 @@ if [ -f $CACHE_DIR/.heroku/python-version ]; then
...
@@ -109,6 +110,13 @@ if [ -f $CACHE_DIR/.heroku/python-version ]; then
DEFAULT_PYTHON_VERSION
=
$(
cat
$CACHE_DIR
/.heroku/python-version
)
DEFAULT_PYTHON_VERSION
=
$(
cat
$CACHE_DIR
/.heroku/python-version
)
fi
fi
# Stack fallback for non-declared caches.
if
[
-f
$CACHE_DIR
/.heroku/python-stack
]
;
then
CACHED_PYTHON_STACK
=
$(
cat
$CACHE_DIR
/.heroku/python-stack
)
else
CACHED_PYTHON_STACK
=
$DEFAULT_PYTHON_STACK
fi
# If no runtime given, assume default version.
# If no runtime given, assume default version.
if
[
!
-f
runtime.txt
]
;
then
if
[
!
-f
runtime.txt
]
;
then
echo
$DEFAULT_PYTHON_VERSION
>
runtime.txt
echo
$DEFAULT_PYTHON_VERSION
>
runtime.txt
...
...
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