mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Support updating single Python dependency
This commit is contained in:
parent
5ae7a4e3c4
commit
c4dbaa7970
1 changed files with 7 additions and 1 deletions
|
@ -17,10 +17,16 @@ cli.add_command(compile.cli, "compile")
|
|||
|
||||
print("Updating deps...")
|
||||
os.chdir(os.getenv("BUILD_WORKING_DIRECTORY"))
|
||||
|
||||
if pkg := os.getenv("PACKAGE"):
|
||||
upgrade_args = ["--upgrade-package", pkg]
|
||||
else:
|
||||
upgrade_args = ["--upgrade"]
|
||||
|
||||
sys.argv[1:] = [
|
||||
"compile",
|
||||
"--allow-unsafe",
|
||||
"--upgrade",
|
||||
*upgrade_args,
|
||||
"--no-header",
|
||||
"--strip-extras",
|
||||
"--generate-hashes",
|
||||
|
|
Loading…
Reference in a new issue