mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add XXX: RUSTPYTHON
This commit is contained in:
1 parent
d9c808ded8
commit
09a1ce9b2b
2 files changed
+4
No files matched your search
Vendored
+2
@@ -275,6 +275,7 @@ def _getuserbase():
|
||||
|
||||
if os.name == "nt":
|
||||
base = os.environ.get("APPDATA") or "~"
|
||||
# XXX: RUSTPYTHON; please keep this change for site-packages
|
||||
return joinuser(base, "RustPython")
|
||||
|
||||
if sys.platform == "darwin" and sys._framework:
|
||||
@@ -368,6 +369,7 @@ def getsitepackages(prefixes=None):
|
||||
|
||||
for libdir in libdirs:
|
||||
path = os.path.join(prefix, libdir,
|
||||
# XXX: RUSTPYTHON; please keep this change for site-packages
|
||||
"rustpython%d.%d" % sys.version_info[:2],
|
||||
"site-packages")
|
||||
sitepackages.append(path)
|
||||
|
||||
Vendored
+2
@@ -288,12 +288,14 @@ class HelperFunctionsTests(unittest.TestCase):
|
||||
if sys.platlibdir != "lib":
|
||||
self.assertEqual(len(dirs), 2)
|
||||
wanted = os.path.join('xoxo', sys.platlibdir,
|
||||
# XXX: RUSTPYTHON
|
||||
'rustpython%d.%d' % sys.version_info[:2],
|
||||
'site-packages')
|
||||
self.assertEqual(dirs[0], wanted)
|
||||
else:
|
||||
self.assertEqual(len(dirs), 1)
|
||||
wanted = os.path.join('xoxo', 'lib',
|
||||
# XXX: RUSTPYTHON
|
||||
'rustpython%d.%d' % sys.version_info[:2],
|
||||
'site-packages')
|
||||
self.assertEqual(dirs[-1], wanted)
|
||||
|
||||
Reference in new issue
Block a user