From aad1d848a69bce89240182e098936472d5f9531e Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 23 Apr 2023 11:14:19 +0900 Subject: [PATCH] Rewrite Python->RustPython on sysconfig.py Co-Authored-By: Ankit Kumar Pandey --- Lib/sysconfig.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index f14b138bb..9999d6bbd 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -1,3 +1,5 @@ +# XXX: RUSTPYTHON; Trick to make sysconfig work as RustPython +exec(r''' """Access to Python's configuration information.""" import os @@ -851,10 +853,6 @@ def _main(): print() _print_dict('Variables', get_config_vars()) -# XXX RUSTPYTHON: replace python with rustpython in all these paths -for group in _INSTALL_SCHEMES.values(): - for key in group.keys(): - group[key] = group[key].replace("Python", "RustPython").replace("python", "rustpython") - if __name__ == '__main__': _main() +'''.replace("Python", "RustPython").replace("/python", "/rustpython"))