Fix snapcraft packaging (#1235)

This commit is contained in:
Batuhan Taskaya 2021-12-08 12:20:58 +03:00 committed by GitHub
parent df58ec683e
commit ea8e22677a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,18 +64,13 @@ parts:
python -m pip install httpie-unixsocket
python -m pip install httpie-snapdsocket
echo "Removing no more needed modules ..."
python -m pip uninstall -y pip wheel
override-prime: |
snapcraftctl prime
echo "Removing useless files ..."
packages=$SNAPCRAFT_PRIME/lib/python3.8/site-packages
rm -rfv $packages/_distutils_hack
rm -rfv $packages/pkg_resources/tests
rm -rfv $packages/requests_unixsocket/test*
rm -rfv $packages/setuptools
echo "Compiling pyc files ..."
python -m compileall -f $packages
@ -112,3 +107,9 @@ apps:
completer: httpie-completion.bash
environment:
LC_ALL: C.UTF-8
httpie:
command: bin/httpie
plugs: *plugs
environment:
LC_ALL: C.UTF-8