Skip to content

Commit bbc57f0

Browse files
author
Daniel Wolf
committed
Remove conditional creation of pip.conf
1 parent ef93faf commit bbc57f0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

providers/standard/src/airflow/providers/standard/utils/python_virtualenv.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,12 @@ def prepare_virtualenv(
167167
if requirements is not None and requirements_file_path is not None:
168168
raise ValueError("Either requirements OR requirements_file_path has to be passed, but not both")
169169

170+
if index_urls is not None:
171+
_generate_pip_conf(Path(venv_directory) / "pip.conf", index_urls)
172+
170173
if _use_uv():
171174
venv_cmd = _generate_uv_cmd(venv_directory, python_bin, system_site_packages)
172175
else:
173-
# Settings in pip.conf are currently not honored by uv
174-
# https://github.com/astral-sh/uv/issues/1404
175-
if index_urls is not None:
176-
_generate_pip_conf(Path(venv_directory) / "pip.conf", index_urls)
177176
venv_cmd = _generate_venv_cmd(venv_directory, python_bin, system_site_packages)
178177
execute_in_subprocess(venv_cmd)
179178

0 commit comments

Comments
 (0)