Skip to content
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

Add environment variable for --no-build-isolation #3309

Closed
morotti opened this issue Apr 29, 2024 · 1 comment · Fixed by #3318
Closed

Add environment variable for --no-build-isolation #3309

morotti opened this issue Apr 29, 2024 · 1 comment · Fixed by #3318
Labels
configuration Settings and such

Comments

@morotti
Copy link

morotti commented Apr 29, 2024

Hello,

I am trying to use the --no-build-isolation option, introduced in #2258
It's necessary to make uv/pip use the current venv when installing or building packages.
It's largely used in build systems and environments where a venv is already prepared to build/install packages.

I am finding that the option is not working when set by an environment variable? I think it might not be implemented.
Or the environment variable name/value might be something else. I've tried a few variants I could think of but that did not help.

# pass
uv pip install -e . --no-build-isolation
# fail
UV_NO_BUILD_ISOLATION=true uv pip install -e .

uv version 0.1.39 (latest as of today)

@zanieb
Copy link
Member

zanieb commented Apr 29, 2024

Yeah, we don't provide an environment variable for this yet.

@zanieb zanieb added the configuration Settings and such label Apr 29, 2024
@zanieb zanieb changed the title UV_NO_BUILD_ISOLATION=true has no effect Add environment variable for --no-build-isolation Apr 29, 2024
charliermarsh pushed a commit that referenced this issue Apr 30, 2024
## Summary
Hi! Added `UV_NO_BUILD_ISOLATION` as a boolean environment variable for
the `--no-build-isolation` command-line option.

Closes #3309

## Test Plan

Added new test `respect_no_build_isolation_env_var` to check that the
behaviour is the same as if the ``--no-build-isolation``
command-line-option is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Settings and such
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants