python plugin v2 doesn't quote python-packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Chris Patterson |
Bug Description
The v2 python pluging doesn't quote entries from python-packages when passing them to pip.
The following works when based on core18 but not with core20:
python-
- ibm-db-sa; platform_machine == 'x86_64'
- ibm-db-sa; platform_machine == 'ppc64le'
- ibm-db-sa; platform_machine == 's390x'
Looking at the resulting build.sh script in the build environment, the "pip install" commands doesn't quote individual entries, so spaces cause issue.
Note that just removing spaces doesn't fix the issue, as platform_machine values need to be quoted, and quotes get lost in the script.
Manually double-quoting each entry in the script makes it work.
This is with snapcraft 4.0.5 (4892)
Changed in snapcraft: | |
status: | New → In Progress |
assignee: | nobody → Chris Patterson (cjp256) |
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
This is still an issue in 4.1.4