File tree Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,11 @@ jobs:
308
308
run : |
309
309
target/release/rustpython -m ensurepip
310
310
target/release/rustpython -c "import pip"
311
+ - if : runner.os != 'Windows'
312
+ name : Check if pip inside venv is functional
313
+ run : |
314
+ target/release/rustpython -m venv testvenv
315
+ testvenv/bin/rustpython -m pip install wheel
311
316
- name : Check whats_left is not broken
312
317
run : python -I whats_left.py
313
318
Original file line number Diff line number Diff line change @@ -275,7 +275,8 @@ def joinuser(*args):
275
275
276
276
if os .name == "nt" :
277
277
base = os .environ .get ("APPDATA" ) or "~"
278
- return joinuser (base , "Python" )
278
+ # XXX: RUSTPYTHON; please keep this change for site-packages
279
+ return joinuser (base , "RustPython" )
279
280
280
281
if sys .platform == "darwin" and sys ._framework :
281
282
return joinuser ("~" , "Library" , sys ._framework ,
@@ -368,7 +369,8 @@ def getsitepackages(prefixes=None):
368
369
369
370
for libdir in libdirs :
370
371
path = os .path .join (prefix , libdir ,
371
- "python%d.%d" % sys .version_info [:2 ],
372
+ # XXX: RUSTPYTHON; please keep this change for site-packages
373
+ "rustpython%d.%d" % sys .version_info [:2 ],
372
374
"site-packages" )
373
375
sitepackages .append (path )
374
376
else :
Original file line number Diff line number Diff line change
1
+ # XXX: RUSTPYTHON; Trick to make sysconfig work as RustPython
2
+ exec (r'''
1
3
"""Access to Python's configuration information."""
2
4
3
5
import os
@@ -851,10 +853,6 @@ def _main():
851
853
print()
852
854
_print_dict('Variables', get_config_vars())
853
855
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
-
859
856
if __name__ == '__main__':
860
857
_main()
858
+ ''' .replace ("Python" , "RustPython" ).replace ("/python" , "/rustpython" ))
Original file line number Diff line number Diff line change @@ -288,13 +288,15 @@ def test_getsitepackages(self):
288
288
if sys .platlibdir != "lib" :
289
289
self .assertEqual (len (dirs ), 2 )
290
290
wanted = os .path .join ('xoxo' , sys .platlibdir ,
291
- 'python%d.%d' % sys .version_info [:2 ],
291
+ # XXX: RUSTPYTHON
292
+ 'rustpython%d.%d' % sys .version_info [:2 ],
292
293
'site-packages' )
293
294
self .assertEqual (dirs [0 ], wanted )
294
295
else :
295
296
self .assertEqual (len (dirs ), 1 )
296
297
wanted = os .path .join ('xoxo' , 'lib' ,
297
- 'python%d.%d' % sys .version_info [:2 ],
298
+ # XXX: RUSTPYTHON
299
+ 'rustpython%d.%d' % sys .version_info [:2 ],
298
300
'site-packages' )
299
301
self .assertEqual (dirs [- 1 ], wanted )
300
302
else :
You can’t perform that action at this time.
0 commit comments