diff --git a/python-flask.cygport b/python-flask.cygport index aa3f44d..cc96858 100644 --- a/python-flask.cygport +++ b/python-flask.cygport @@ -41,8 +41,9 @@ src_install () { cd "$B" python_wheel_install - cd "$D" + cd "$D"/usr/bin + sed -ri '1{/^#!/{s/\.exe//;s/python3\.[0-9]+/python3/}}' flask for v in ${PYTHON_WHEEL_VERSIONS//:/ }; do - cp usr/bin/flask usr/bin/flask"$v" + sed -r '1{/^#!/{s/python3/python'"$v"'/}}' flask >"flask$v" done }