mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
+5
-2
@@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Install Mercurial if it appears to be required.
|
||||
if (grep -Fiq "hg+" requirements.txt) then
|
||||
/app/.heroku/python/bin/pip install mercurial | cleanup | indent
|
||||
if [[ -f "requirements.txt" ]]; then
|
||||
if (grep -Fiq "hg+" requirements.txt) then
|
||||
/app/.heroku/python/bin/pip install mercurial | cleanup | indent
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Vendored
+2
-1
@@ -8,6 +8,7 @@ Options:
|
||||
-h --help Show this screen.
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
from docopt import docopt
|
||||
from pip.req import parse_requirements
|
||||
from pip.index import PackageFinder
|
||||
@@ -73,5 +74,5 @@ if __name__ == '__main__':
|
||||
try:
|
||||
main()
|
||||
except Exception:
|
||||
pass
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user