-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow uv sync --no-build-isolation
#5742
Comments
We should consider giving |
That seems nice for the |
An observation: I expected it to list the packages from the python env found on the system path (which in this case is WinPython). |
WinPython includes PS C:\Users\user\git\project> uv venv --system-site-packages
Using Python 3.12.4 interpreter at: C:\WinPython\python-3.12.4.amd64\python.exe
Creating virtualenv at: .venv
Activate with: .venv\Scripts\activate
(project) PS C:\Users\user\git\project> uv pip install --offline --no-build-isolation -e .
× No solution found when resolving dependencies:
╰─▶ Because pytest was not found in the cache and project==0.1.0 depends on pytest==8.2.0, we can conclude that project==0.1.0 cannot be used.
And because only project==0.1.0 is available and you require project, we can conclude that the requirements are unsatisfiable.
hint: Packages were unavailable because the network was disabled Here's the [build-system]
requires = ["flit_core>=3.9.0"]
build-backend = "flit_core.buildapi"
[project]
name = "project"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = ["pytest==8.2.0"] It does work if I remove (project) PS C:\Users\user\git\project> uv pip install --offline --no-build-isolation -e .
Resolved 1 package in 56ms
Built project @ file:///C:/Users/user/git/project
Prepared 1 package in 387ms
Installed 1 package in 73ms
+ project==0.1.0 (from file:///C:/Users/user/git/project) |
System Information
Issue
uv
fails to find build dependencies in the current virtual environment when utilizing an offline workflow.The follow commands can reproduce the issue. Note that I create a virtual environment that inherits the packages from the
WinPython
distribution.However, I can install using
uv pip install -e . --no-build-isolation
The text was updated successfully, but these errors were encountered: