diff --git a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py index 90f53d1..b539fc7 100644 --- a/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py +++ b/python/online/fxreader/pr34/commands_typed/cli_bootstrap.py @@ -422,6 +422,17 @@ def env_bootstrap( # *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(): with tempfile.NamedTemporaryFile( mode='w', @@ -436,6 +447,7 @@ def env_bootstrap( 'uv', 'pip', 'compile', + *uv_python_version, '--generate-hashes', *pip_find_links_args, # '-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( [ 'uv', @@ -474,9 +476,10 @@ def env_bootstrap( 'uv', 'pip', 'install', + *uv_python_version, *pip_find_links_args, - '-p', - bootstrap_settings.python_path, + # '-p', + # bootstrap_settings.python_path, '--require-hashes', *bootstrap_settings.uv_args, '-r',