snap build installing old pypi version of argparse

Bug #2028303 reported by Kenneth Loafman
6
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?

Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.