mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
69b8b25322
To save the 301s.
23 lines
532 B
Bash
Executable File
23 lines
532 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script serves as the
|
|
# [**Python Buildpack**](https://github.com/heroku/heroku-buildpack-python)
|
|
# detector.
|
|
#
|
|
# A [buildpack](https://devcenter.heroku.com/articles/buildpacks) is an
|
|
# adapter between a Python application and Heroku's runtime.
|
|
|
|
# ## Usage
|
|
# Compiling an app into a slug is simple:
|
|
#
|
|
# $ bin/detect <build-dir> <cache-dir>
|
|
|
|
BUILD_DIR=$1
|
|
|
|
# Exit early if app is clearly not Python.
|
|
if [ ! -f $BUILD_DIR/requirements.txt ] && [ ! -f $BUILD_DIR/setup.py ]; then
|
|
exit 1
|
|
fi
|
|
|
|
echo Python
|