Skip to content

Commit

Permalink
fix pywhisker build error
Browse files Browse the repository at this point in the history
  • Loading branch information
dadevel committed Oct 16, 2024
1 parent 58558b4 commit e45a1aa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pywhisker/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ sha256sums=(SKIP)

package() {
cd "${srcdir}/${pkgname}"
mkdir -p "${pkgdir}"/opt/archpkgs/bin "${pkgdir}/opt/archpkgs/${pkgname}"
mkdir -p "${pkgdir}/opt/archpkgs/bin" "${pkgdir}/opt/archpkgs/${pkgname}"
python -m venv "${pkgdir}/opt/archpkgs/${pkgname}"
cp ./pywhisker.py "${pkgdir}/opt/archpkgs/${pkgname}/bin"
declare -x VIRTUAL_ENV="${pkgdir}/opt/archpkgs/${pkgname}" PYTHONPATH="${pkgdir}/opt/archpkgs/${pkgname}" PATH="${pkgdir}/opt/archpkgs/${pkgname}/bin:$PATH"
pip install -r ./requirements.txt
cat << EOF > "${pkgdir}/opt/archpkgs/bin/pywhisker"
pip install .
cat << EOF > "${pkgdir}/opt/archpkgs/bin/${pkgname}"
#!/bin/sh
set -eu
export VIRTUAL_ENV=/opt/archpkgs/${pkgname} PYTHONPATH=/opt/archpkgs/${pkgname} PATH="/opt/archpkgs/${pkgname}/bin:\$PATH"
exec python /opt/archpkgs/${pkgname}/bin/pywhisker.py "\$@"
exec python /opt/archpkgs/${pkgname}/bin/${pkgname} "\$@"
EOF
chmod +x "${pkgdir}/opt/archpkgs/bin/pywhisker"
chmod +x "${pkgdir}/opt/archpkgs/bin/${pkgname}"
}

pkgver() {
Expand Down

0 comments on commit e45a1aa

Please sign in to comment.