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
2db55789
Commit
2db55789
authored
12 years ago
by
Kenneth Reitz
Browse files
Options
Downloads
Patches
Plain Diff
set buildtime vars, cleanup comments
/cc @alexclark
parent
29025083
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
+4
-28
4 additions, 28 deletions
bin/compile
with
4 additions
and
28 deletions
bin/compile
+
4
−
28
View file @
2db55789
#!/usr/bin/env bash
#!/usr/bin/env bash
# This script serves as the
# Usage:
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
# compiler.
#
# A [buildpack](http://devcenter.heroku.com/articles/buildpacks) is an
# adapter between a Python application and Heroku's runtime.
#
# You can intreract with the Heroku API directly with [heroku.py](https://github.com/heroku/heroku.py/).
#
# See also: [Release history](/changelog.html), [Detection](/detect.html).
#
# ## Usage
# Compiling an app into a slug is simple:
#
#
# $ bin/compile <build-dir> <cache-dir>
# $ bin/compile <build-dir> <cache-dir>
# ## Assumptions
#
# This buildpack makes the following assumptions:
#
# - The desired Python VM is available on the base system.
# - Library dependencies are available on the base system.
# - Django applications should not require any platform-specific configuration.
# <hr />
# ## Context
# Fail fast and fail hard.
# Fail fast and fail hard.
set
-eo
pipefail
set
-eo
pipefail
...
@@ -79,9 +55,9 @@ BUILD_DIR=$APP_DIR
...
@@ -79,9 +55,9 @@ BUILD_DIR=$APP_DIR
# Prepend proper path buildpack use.
# Prepend proper path buildpack use.
export
PATH
=
$BUILD_DIR
/.heroku/python/bin:
$PATH
export
PATH
=
$BUILD_DIR
/.heroku/python/bin:
$PATH
export
PYTHONUNBUFFERED
=
1
export
PYTHONUNBUFFERED
=
1
export
LANG
=
en_US.UTF-8
# ## Build Time
export
LIBRARY_PATH
=
/app/.heroku/vendor/lib
#
export
LD_LIBRARY_PATH
=
/app/.heroku/vendor/lib
# Switch to the repo's context.
# Switch to the repo's context.
cd
$BUILD_DIR
cd
$BUILD_DIR
...
...
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