mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Rewrite Python->RustPython on sysconfig.py
Co-Authored-By: Ankit Kumar Pandey <itsankitkp@gmail.com>
This commit is contained in:
1 parent
09a1ce9b2b
commit
aad1d848a6
1 file changed
+3
-5
Vendored
+3
-5
@@ -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"))
|
||||
Reference in new issue
Block a user