mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
whitespace stripper for runtime.txt
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
set +e
|
||||
|
||||
# Fix any pending whitespace around runtime.txt.
|
||||
runtime-fixer runtime.txt
|
||||
|
||||
PYTHON_VERSION=$(cat runtime.txt)
|
||||
|
||||
# Install Python.
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
runtime_file = sys.argv[1]
|
||||
|
||||
with open(req_file, 'r') as f:
|
||||
r = f.read().strip()
|
||||
|
||||
with open(runtime_file, 'w') as f:
|
||||
f.write(r)
|
||||
Reference in New Issue
Block a user