refactor: update packaging logic to remove local wheel path and improve dependency specifications

This commit is contained in:
2026-09-18 19:42:38 +08:00
parent 122f609156
commit 580fe84275
4 changed files with 39 additions and 22 deletions

View File

@@ -70,8 +70,6 @@ def download_wheels(platform, destination):
numpy_requirement,
"--dest",
str(target_directory),
"--find-links",
str(SOURCE_DIR / "wheels"),
"--only-binary=:all:",
f"--python-version={python_version}",
"--implementation=cp",
@@ -217,20 +215,22 @@ def build_all():
def main(argv=None):
parser = argparse.ArgumentParser(
description="Prepare local dependencies or pack Blender extensions"
description="Pack Blender extensions or prepare local dependencies"
)
parser.add_argument(
"--prepare",
"-l",
"--local",
action="store_true",
help="Update source wheels and Manifest for local testing",
)
parser.add_argument(
"-p",
"--platform",
choices=PLATFORMS,
help="Target platform; preparation defaults to this computer",
help="Build one platform; --local defaults to this computer",
)
args = parser.parse_args(argv)
if args.prepare:
if args.local:
platform = args.platform or current_platform()
wheels = prepare_local_dependencies(platform)
print(