snap build installing old pypi version of argparse
Bug #2028303 reported by
Kenneth Loafman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
When building for core20 the python extension seems to be loading pypi modules not in requirements.txt. The snapcraft.yaml attached shows the fix (lines 57-60) for the old argparse in pypi being substituted for the newer argparse in the py38. Without the uninstall, argparse is included from pypi, and that version is way too old for us to use.
This is suspicious because normally pip would not install anything not in requirements.txt, but in this case argparse from pypi is installed. Normal operation of pip install does not install extras. Do I need to look for more trouble spots? What else might be installed in error?
To post a comment you must log in.
Just a real curiosity... argparse. __version_ _ is 1.40 for the older pypi version and is 1.1 for all distribution versions, py38 to py311. Very confusing and backwards.