chore: update build script paths

This commit is contained in:
aclist 2026-05-19 18:25:29 +09:00
parent fb36425083
commit fc7f1d7815
2 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -11,4 +11,3 @@ uv.lock
.coverage
pyapp-latest/
dist/
cpython

View File

@ -9,6 +9,7 @@ root = Path(__file__).resolve().parents[1]
output = root.joinpath("dist")
pyapp_dir = root.joinpath("pyapp-latest")
cpython = root.joinpath("build/cpython/airgapped.tar.gz")
builder = build.ProjectBuilder(root)
wheel = builder.build("wheel", output_directory=output)
@ -33,7 +34,7 @@ env["PYAPP_PASS_LOCATION"] = "true"
env["PYAPP_SKIP_INSTALL"] = "true"
env["PYAPP_DISTRIBUTION_EMBED"] = "true"
env["PYAPP_FULL_ISOLATION"] = "true"
env["PYAPP_DISTRIBUTION_PATH"] = "cpython/airgapped.tar.gz"
env["PYAPP_DISTRIBUTION_PATH"] = cpython
env["PYAPP_DISTRIBUTION_PYTHON_PATH"] = "python/bin/python3"
proc = subprocess.run(["cargo", "build", "--release"], env=env, cwd=pyapp_dir)