mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
chore: build dependencies into distribution tarball
This commit is contained in:
1 parent
17f732fafe
commit
c5d8afbc4d
3 files changed
+16
-4
No files matched your search
@@ -11,3 +11,4 @@ uv.lock
|
|||||||
.coverage
|
.coverage
|
||||||
pyapp-latest/
|
pyapp-latest/
|
||||||
dist/
|
dist/
|
||||||
|
cpython
|
||||||
+7
-2
@@ -14,5 +14,10 @@ sphinx-build -M html source build -a
|
|||||||
|
|
||||||
# Building standalone DZGUI release binaries
|
# Building standalone DZGUI release binaries
|
||||||
1. Run `./scripts/dl_pyapp.sh`
|
1. Run `./scripts/dl_pyapp.sh`
|
||||||
2. Run `python3 scripts/release.py`
|
# TODO: secondary script that packs this archive
|
||||||
3. Generate a release and tag against the bundled `dzgui` executable
|
2. Download cpython 3.13, linux, gnu, v3
|
||||||
|
https://github.com/astral-sh/python-build-standalone/releases/download/20251014/cpython-3.13.9%2B20251014-x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz
|
||||||
|
3. Explicitly install dependencies into site-packages
|
||||||
|
4. Pack back into a tarball
|
||||||
|
5. Run `python3 scripts/release.py`
|
||||||
|
6. Generate a release and tag against the bundled `dzgui` executable
|
||||||
+8
-2
@@ -26,9 +26,15 @@ env["PYAPP_PROJECT_VERSION"] = version
|
|||||||
env["PYAPP_PROJECT_NAME"] = appname
|
env["PYAPP_PROJECT_NAME"] = appname
|
||||||
env["PYAPP_EXEC_SPEC"] = entrypoint
|
env["PYAPP_EXEC_SPEC"] = entrypoint
|
||||||
env["PYAPP_PROJECT_PATH"] = wheel
|
env["PYAPP_PROJECT_PATH"] = wheel
|
||||||
env["PYAPP_DISTRIBUTION_EMBED"] = "true"
|
|
||||||
env["PYAPP_PYTHON_VERSION"] = "3.13"
|
|
||||||
env["PYAPP_PASS_LOCATION"] = "true"
|
env["PYAPP_PASS_LOCATION"] = "true"
|
||||||
|
# env["PYAPP_PYTHON_VERSION"] = "3.13"
|
||||||
|
|
||||||
|
# NOTE: explicitly install all dependencies into distribution
|
||||||
|
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_PYTHON_PATH"] = "python/bin/python3"
|
||||||
|
|
||||||
proc = subprocess.run(["cargo", "build", "--release"], env=env, cwd=pyapp_dir)
|
proc = subprocess.run(["cargo", "build", "--release"], env=env, cwd=pyapp_dir)
|
||||||
if proc.returncode == 0:
|
if proc.returncode == 0:
|
||||||
|
|||||||
Reference in new issue
Block a user