Closed sgrimee closed 1 day ago
It looks like you might need --no-build-isolation
?
Thanks for the response! So I try from a fresh venv, I install setuptools and ninja, then:
uv pip install --no-build-isolation pyre2==0.3.6
Resolved 1 package in 0.94ms
error: Failed to download distributions
Caused by: Failed to fetch wheel: pyre2==0.3.6
Caused by: Failed to build: `pyre2==0.3.6`
Caused by: Build backend failed to build wheel through `build_wheel()` with exit status: 1
--- stdout:
running bdist_wheel
running build
running build_ext
-- Configuring incomplete, errors occurred!
--- stderr:
CMake Error at CMakeLists.txt:3 (project):
Running
'/Users/sgrimee/Library/Caches/uv/.tmpRpC52h/.venv/bin/ninja' '--version'
failed with:
no such file or directory
Hmm, this works as expected for me:
❯ uv venv
❯ uv pip install setuptools ninja cython
❯ uv pip install --no-build-isolation pyre2==0.3.6
Resolved 1 package in 1ms
Built pyre2==0.3.6
Prepared 1 package in 3.23s
Installed 1 package in 0.64ms
+ pyre2==0.3.6
thanks for checking... are you on python 3.12? I still see the error, and had a colleague test it to, but I see it only on 3.12. With 3.9-11, I get another error, I think not related, which I am trying to solve also by upgrading my c++ to v17. Would you mind sharing your python version, as well as c++ version you are using?
@sgrimee -- I just tested and it succeeds for me on both Python 3.11 and Python 3.12, unfortunately.
Gonna close due to difficulty reproducing.
Unable to install pyre2 with uv pip, it works with pip directly.
On mac, in a nix environment with python 3.12.4 and uv 0.1.45. Using a venv created by uv.
Trying to install pyre2:
It also fails if I first install: