Skip to content

Commit

Permalink
Update Heroku pre_compile hook
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jun 14, 2016
1 parent aed65f4 commit 02c0657
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/pre_compile
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# heroku pre_compile script
# Heroku pre_compile script

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $DIR/..
Expand All @@ -8,8 +8,9 @@ pushd $DIR/..
# https://github.com/heroku/heroku-buildpack-python/blob/master/bin/steps/cryptography
# to avoid making it a requirement for other build systems, we'll inject it now
# into the requirements.txt file
# remove pymssql, it doesn't compile on heroku
grep -v '^pymssql' requirements_all_ds.txt >> requirements.txt

# Remove Heroku unsupported Python packages:
grep -v -E "^(pymssql|thrift|sasl|pyhive)" requirements_all_ds.txt >> requirements.txt

# make the heroku Procfile the active one
cp Procfile.heroku Procfile
Expand Down

0 comments on commit 02c0657

Please sign in to comment.