Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aad1d84

Browse files
Rewrite Python->RustPython on sysconfig.py
Co-Authored-By: Ankit Kumar Pandey <[email protected]>
1 parent 09a1ce9 commit aad1d84

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Lib/sysconfig.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# XXX: RUSTPYTHON; Trick to make sysconfig work as RustPython
2+
exec(r'''
13
"""Access to Python's configuration information."""
24
35
import os
@@ -851,10 +853,6 @@ def _main():
851853
print()
852854
_print_dict('Variables', get_config_vars())
853855
854-
# XXX RUSTPYTHON: replace python with rustpython in all these paths
855-
for group in _INSTALL_SCHEMES.values():
856-
for key in group.keys():
857-
group[key] = group[key].replace("Python", "RustPython").replace("python", "rustpython")
858-
859856
if __name__ == '__main__':
860857
_main()
858+
'''.replace("Python", "RustPython").replace("/python", "/rustpython"))

0 commit comments

Comments
 (0)