snapcraft: remove python links from snap bin dir

The python links in the bin dir of the snap were resolving to system
python instead of the python binary found at usr/bin.  This appears to
be the root cause of why python scripts would fail to find their own
resources, such as ssh-import-id and lsb_release.
This commit is contained in:
Dan Bungert 2021-11-19 14:31:20 -07:00
parent 6a970ccd41
commit cf199fbc4d
1 changed files with 7 additions and 0 deletions

View File

@ -70,6 +70,8 @@ parts:
- "-lib/python*/site-packages/wheel*"
- "-lib/python*/site-packages/probert"
- "-bin/activate*"
- -bin/python
- -bin/python3*
- "-lib/python3.8/site-packages/__pycache__/six.cpython*"
- "-lib/python3.8/site-packages/pip-*.dist-info/RECORD"
- "-lib/python3.8/site-packages/wheel-*.dist-info/RECORD"
@ -112,6 +114,10 @@ parts:
- python3-requests-unixsocket
- python3-requests
- python3-pyudev
stage:
- "*"
- -bin/python
- -bin/python3
source: .
source-type: git
build-environment:
@ -178,6 +184,7 @@ parts:
requirements: [requirements.txt]
stage:
- "*"
- -bin/python
- -bin/python3*
- -bin/activate*
- -lib/python3.8/site-packages/_distutils_hack