Repository: RustPython/RustPython (language: rust)

Issue:
pip is broken again on macOS
```
$ cargo run --release --features=ssl -- -m ensurepip
 Defaulting to user installation because normal site-packages is not writeable
Looking in links: /var/folders/4l/db5by6f97gl8z692_wckqb3w0000gn/T/tmpsqf2lk1o
Processing /private/var/folders/4l/db5by6f97gl8z692_wckqb3w0000gn/T/tmpsqf2lk1o/setuptools-65.5.0-py3-none-any.whl
Processing /private/var/folders/4l/db5by6f97gl8z692_wckqb3w0000gn/T/tmpsqf2lk1o/pip-22.3.1-py3-none-any.whl
Installing collected packages: setuptools, pip
Successfully installed pip-22.0.4 setuptools-67.4.0
$ cargo run --release --features=ssl -- -m pip
    Finished release [optimized] target(s) in 0.38s
     Running `target/release/rustpython -m pip`
./target/release/rustpython: No module named pip
```


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 012a2b62d6..3fb2008caf 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -295,6 +295,11 @@ jobs:
         run: |
           mkdir site-packages
           target/release/rustpython --install-pip ensurepip --user
+      - if: runner.os != 'Windows'
+        name: Check that ensurepip succeeds.
+        run: |
+          target/release/rustpython -m ensurepip
+          target/release/rustpython -c "import pip"
       - name: Check whats_left is not broken
         run: python -I whats_left.py
 
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index a8ce7472bc..f14b138bbe 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -851,6 +851,10 @@ 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()


Test patch:
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index b072c0dedf..a1238bf206 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -141,6 +141,8 @@ def test_get_preferred_schemes(self):
         self.assertIsInstance(schemes, dict)
         self.assertEqual(set(schemes), expected_schemes)
 
+    # NOTE: RUSTPYTHON this is hardcoded to 'python', we're set up for failure.
+    @unittest.expectedFailure
     def test_posix_venv_scheme(self):
         # The following directories were hardcoded in the venv module
         # before bpo-45413, here we assert the posix_venv scheme does not regress