mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
Support uv for installing third party dependencies (#13706)
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from ts_utils.requirements import get_external_stub_requirements
|
||||
|
||||
use_uv = "--uv" in sys.argv
|
||||
if use_uv:
|
||||
pip_command = ["uv", "pip", "install"]
|
||||
else:
|
||||
pip_command = ["pip", "install"]
|
||||
|
||||
requirements = get_external_stub_requirements()
|
||||
subprocess.check_call(("pip", "install", *[str(requirement) for requirement in requirements]))
|
||||
subprocess.check_call(pip_command + [str(requirement) for requirement in requirements])
|
||||
|
||||
Reference in New Issue
Block a user