mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -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...")
|
print("Updating deps...")
|
||||||
os.chdir(os.getenv("BUILD_WORKING_DIRECTORY"))
|
os.chdir(os.getenv("BUILD_WORKING_DIRECTORY"))
|
||||||
|
|
||||||
|
if pkg := os.getenv("PACKAGE"):
|
||||||
|
upgrade_args = ["--upgrade-package", pkg]
|
||||||
|
else:
|
||||||
|
upgrade_args = ["--upgrade"]
|
||||||
|
|
||||||
sys.argv[1:] = [
|
sys.argv[1:] = [
|
||||||
"compile",
|
"compile",
|
||||||
"--allow-unsafe",
|
"--allow-unsafe",
|
||||||
"--upgrade",
|
*upgrade_args,
|
||||||
"--no-header",
|
"--no-header",
|
||||||
"--strip-extras",
|
"--strip-extras",
|
||||||
"--generate-hashes",
|
"--generate-hashes",
|
||||||
|
|
Loading…
Reference in a new issue