mkvenv-pyside.sh 349 B

1234567891011121314151617
  1. #!/bin/sh
  2. basedir="$(realpath -e "$0" | xargs dirname)"
  3. rootdir="$basedir/.."
  4. die()
  5. {
  6. echo "ERROR: $*" >&2
  7. exit 1
  8. }
  9. venvdir="$rootdir/venv-pyside"
  10. virtualenv --clear --system-site-packages "$venvdir" || die "virtualenv failed."
  11. . "$venvdir"/bin/activate || die "venv activate failed."
  12. pip3 install PySide6 || die "pip install PySide6 failed."