spack/lib/spack/external
Massimiliano Culpo 09378f56c0
Use a patched argparse only in Python 2.X (#25376)
Spack is internally using a patched version of `argparse` mainly to backport Python 3 functionality
into Python 2. This PR makes it such that for the supported Python 3 versions we use `argparse`
from the standard Python library. This PR has been extracted from #25371 where it was needed
to be able to use recent versions of `pytest`.

* Fixed formatting issues when using a pristine argparse.py
* Fix error message for Python 3.X when missing positional arguments
* Account for the change of API in Python 3.7
* Layout multi-valued args into columns in error messages
* Seamless transition in develop if argparse.pyc is in external
* Be more defensive in case we can't remove the file.
2021-08-17 08:52:51 -07:00
..
_pytest Python 3.10 support: collections.abc (#20441) 2021-02-01 11:30:25 -06:00
altgraph Buildcache: Install into non-default directory layouts (#13797) 2020-03-16 08:42:23 -05:00
archspec archspec: added support for arm compiler on graviton2 (#24904) 2021-07-15 13:27:13 +00:00
jinja2 Python 3.10 support: collections.abc (#20441) 2021-02-01 11:30:25 -06:00
jsonschema externals: avoid importing requests in jsonschema 2019-09-21 17:57:36 -07:00
macholib External: add macholib and altgraph needed to relocate Mach-o binaries on Linux (#12909) 2019-09-26 11:48:22 -05:00
markupsafe Python 3.10 support: collections.abc (#20441) 2021-02-01 11:30:25 -06:00
py Update to py 1.4.34 (#6789) 2018-01-10 10:05:39 -06:00
py2 Use a patched argparse only in Python 2.X (#25376) 2021-08-17 08:52:51 -07:00
py26 Vendor ordereddict for python2.6 only (#6931) 2018-01-16 07:00:39 +01:00
ruamel Python 3.10 support: collections.abc (#20441) 2021-02-01 11:30:25 -06:00
__init__.py archspec: added support for arm compiler on graviton2 (#24904) 2021-07-15 13:27:13 +00:00
ctest_log_parser.py spack test (#15702) 2020-11-18 02:39:02 -08:00
distro.py Fix detection of redhat enterprise compute node (#15253) 2020-02-28 11:27:15 -06:00
functools_backport.py Use key sorting instead of cmp() 2017-03-31 13:40:41 -07:00
ordereddict_backport.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
pytest.py pytest: add _pytest/_version.py and LICENSE 2018-06-20 14:35:10 -05:00
six.py Update to the latest version of six (#6787) 2018-01-10 10:04:07 -06:00