Skip to content

Commit

Permalink
Handle scripts in /usr/bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
me-and committed Nov 6, 2023
1 parent faba045 commit fc95bc4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python-flit.cygport
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ HOMEPAGE=https://flit.pypa.io
LICENSE=BSD-3-Clause

ARCH=noarch

src_install () {
cd "$B"
python_wheel_install

cd "$D"
sed -ri '1{/^#!/{s/\.exe//;s/python3\.[0-9]+/python3//}' flask
for v in ${PYTHON_WHEEL_VERSIONS//:/ }; do
sed -r '1{/^#!/{s/python3/python'"$v"'/}}' flask >"flask$v"
done
}

0 comments on commit fc95bc4

Please sign in to comment.