Add Conda tests to system-install.yml (#2281)

Closes https://github.com/astral-sh/uv/issues/2280.
This commit is contained in:
Charlie Marsh 2024-03-07 08:44:19 -08:00 committed by GitHub
parent 54311c8664
commit b3ac0e30ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 70 additions and 7 deletions

View file

@ -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.