mbedtls/scripts
Gilles Peskine 4fbffcd144 Do not require typing_extensions at runtime
There are type annotations that indirectly depend on the
typing_extensions module (on Python 3.5-3.7: Protocol was added to the
core typing module in 3.8). The typing_extensions module is not
installed by default, so the code didn't run on a pristine Python
installation.

To avoid depending on a non-default module, make the dependency on
typing_extensions optional. (It's still required to run mypy, but
installing mypy takes care of providing typing_extensions.) If it
isn't available, provide a substitute definition that's just good
enough to get the scripts to run.

Move this ugly code to its own module to avoid the temptation of
spreading such ugliness all over the place. It's likely to be used in
other modules anyway.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-02-17 14:58:29 +01:00
..
data_files Move the declaration of query_config() to a dedicated header file 2021-01-13 14:19:43 +01:00
mbedtls_dev Do not require typing_extensions at runtime 2021-02-17 14:58:29 +01:00
abi_check.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
apidoc_full.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
assemble_changelog.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
bump_version.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
config.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
config.py Don't turn on NO_FALLBACK for full build since it removes functionality 2021-01-22 09:43:27 +01:00
ecc-heap.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
find-mem-leak.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
footprint.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_errors.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_features.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_psa_constants.py MacroCollector: default to not including intermediate macros 2021-02-17 14:50:16 +01:00
generate_query_config.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_visualc_files.pl ssl_test_lib.[hc]: new source file for common SSL test code 2021-01-06 10:25:35 +01:00
massif_max.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
memory.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
output_env.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rename.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
rm-calloc-cast.cocci Remove malloc references in mbedtls/scripts 2017-07-06 10:34:12 +01:00
tmp_ignore_makefiles.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
windows_msbuild.bat Add a simple build script for Windows with Visual Studio 2020-04-26 20:52:04 +02:00