Rewrite Python->RustPython on sysconfig.py

Co-Authored-By: Ankit Kumar Pandey <itsankitkp@gmail.com>
This commit is contained in:
Jeong YunWonandAnkit Kumar Pandey committed 2023-04-23 12:26:06 +09:00
1 parent 09a1ce9b2b
commit aad1d848a6
1 file changed
+3 -5
+3 -5
View File
@@ -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"))