Commit 6eb4256
committed
fix(setup): fix uv-ffi pip subprocess isolation during editable install
During `pip install -e .`, setuptools runs setup.py inside an isolated
build venv whose PYTHONPATH/PYTHONHOME override the real environment's
site-packages, causing `python3 -m pip` to fail with 'No module named pip'
even when pip is installed correctly in the target env.
- Resolve real env Python via CONDA_PREFIX/VIRTUAL_ENV env vars instead
of probing pip/pip3 executables or walking sys.executable
- Strip PYTHONPATH, PYTHONHOME, and __PYVENV_LAUNCHER__ from the
subprocess env before invoking pip install
- Add build/install debug prints for dispatcher and uv-ffi stages
- Refactor OptionalBuildExt and platform detection out of the
SKIP_C_EXTENSIONS else-block so cmdclass is always defined
- Clean up pyproject.toml: remove stale TODO comments, add
uv vendor target/crates dirs to setuptools exclude list,
add missing newline at EOF1 parent 0a5cd81 commit 6eb4256
3 files changed
Lines changed: 213 additions & 107 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 92 | + | |
| 93 | + | |
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
101 | | - | |
102 | | - | |
103 | 97 | | |
104 | 98 | | |
105 | 99 | | |
| |||
110 | 104 | | |
111 | 105 | | |
112 | 106 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
117 | 110 | | |
118 | 111 | | |
119 | 112 | | |
| |||
123 | 116 | | |
124 | 117 | | |
125 | 118 | | |
126 | | - | |
| 119 | + | |
127 | 120 | | |
128 | 121 | | |
129 | 122 | | |
130 | | - | |
131 | 123 | | |
132 | 124 | | |
133 | 125 | | |
| |||
159 | 151 | | |
160 | 152 | | |
161 | 153 | | |
| 154 | + | |
| 155 | + | |
162 | 156 | | |
163 | 157 | | |
164 | 158 | | |
| |||
174 | 168 | | |
175 | 169 | | |
176 | 170 | | |
177 | | - | |
| 171 | + | |
0 commit comments