mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Add Conda tests to system-install.yml
(#2281)
Closes https://github.com/astral-sh/uv/issues/2280.
This commit is contained in:
parent
54311c8664
commit
b3ac0e30ec
3 changed files with 70 additions and 7 deletions
|
@ -92,10 +92,18 @@ if __name__ == "__main__":
|
|||
)
|
||||
|
||||
logging.info("Installing into virtual environment...")
|
||||
|
||||
# Disable the `CONDA_PREFIX` and `VIRTUAL_ENV` environment variables, so that
|
||||
# we only rely on virtual environment discovery via the `.venv` directory.
|
||||
# Our "system Python" here might itself be a Conda environment!
|
||||
env = os.environ.copy()
|
||||
env["CONDA_PREFIX"] = ""
|
||||
env["VIRTUAL_ENV"] = ""
|
||||
subprocess.run(
|
||||
[uv, "pip", "install", "pylint"],
|
||||
[uv, "pip", "install", "pylint", "--verbose"],
|
||||
cwd=temp_dir,
|
||||
check=True,
|
||||
env=env,
|
||||
)
|
||||
|
||||
# Ensure that the package (`pylint`) isn't installed globally.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue