[+] fix cli_bootstrap
This commit is contained in:
parent
66e32b4fc9
commit
772279b5d5
@ -422,6 +422,17 @@ def env_bootstrap(
|
|||||||
# *early_dependencies,
|
# *early_dependencies,
|
||||||
# ])
|
# ])
|
||||||
|
|
||||||
|
uv_python_version: list[str] = []
|
||||||
|
|
||||||
|
if not bootstrap_settings.python_version is None:
|
||||||
|
uv_python_version.extend(
|
||||||
|
[
|
||||||
|
'-p',
|
||||||
|
bootstrap_settings.python_version,
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
if not requirements_path.exists():
|
if not requirements_path.exists():
|
||||||
with tempfile.NamedTemporaryFile(
|
with tempfile.NamedTemporaryFile(
|
||||||
mode='w',
|
mode='w',
|
||||||
@ -436,6 +447,7 @@ def env_bootstrap(
|
|||||||
'uv',
|
'uv',
|
||||||
'pip',
|
'pip',
|
||||||
'compile',
|
'compile',
|
||||||
|
*uv_python_version,
|
||||||
'--generate-hashes',
|
'--generate-hashes',
|
||||||
*pip_find_links_args,
|
*pip_find_links_args,
|
||||||
# '-p',
|
# '-p',
|
||||||
@ -447,16 +459,6 @@ def env_bootstrap(
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
uv_python_version: list[str] = []
|
|
||||||
|
|
||||||
if not bootstrap_settings.python_version is None:
|
|
||||||
uv_python_version.extend(
|
|
||||||
[
|
|
||||||
'-p',
|
|
||||||
bootstrap_settings.python_version,
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
subprocess.check_call(
|
subprocess.check_call(
|
||||||
[
|
[
|
||||||
'uv',
|
'uv',
|
||||||
@ -474,9 +476,10 @@ def env_bootstrap(
|
|||||||
'uv',
|
'uv',
|
||||||
'pip',
|
'pip',
|
||||||
'install',
|
'install',
|
||||||
|
*uv_python_version,
|
||||||
*pip_find_links_args,
|
*pip_find_links_args,
|
||||||
'-p',
|
# '-p',
|
||||||
bootstrap_settings.python_path,
|
# bootstrap_settings.python_path,
|
||||||
'--require-hashes',
|
'--require-hashes',
|
||||||
*bootstrap_settings.uv_args,
|
*bootstrap_settings.uv_args,
|
||||||
'-r',
|
'-r',
|
||||||
|
Loading…
Reference in New Issue
Block a user