mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-05 11:48:50 +08:00
Support uv for installing third party dependencies (#13706)
This commit is contained in:
1 parent
26d445142f
commit
4a750cef35
1 file changed
+8
-1
@@ -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