new replace script

This commit is contained in:
2016-12-19 15:45:20 -05:00
parent dd707c21e3
commit 7f4273f47f
+1 -1
View File
@@ -21,7 +21,7 @@ cp requirements.txt .heroku/python/requirements-declared.txt
/app/.heroku/python/bin/pip freeze --disable-pip-version-check > .heroku/python/requirements-installed.txt
# Replace egg-links with new paths for /app.
find .heroku/python/lib/python*/site-packages/ -name "*.egg-link" | xargs -n 1 sed -i -e 's#$(pwd)/#/app/#'
find .heroku/python/lib/python*/site-packages/-name "*.egg-link" -print0 | xargs -0 -n 1 sed -i -e "s#$(pwd)/#/app/#"
[ ! "$FRESH_PYTHON" ] && bpwatch stop pip_install
[ "$FRESH_PYTHON" ] && bpwatch stop pip_install_first