Skip to content

Commit

Permalink
Build static Linux binaries
Browse files Browse the repository at this point in the history
ref #138
  • Loading branch information
hynek committed Jan 14, 2024
1 parent 183cf29 commit eb45284
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,21 +122,19 @@ def update_rtd_versions(session: nox.Session) -> None:
session.run("python", "docs/update-rtd-versions.py", "doc2dash")


@nox.session
@nox.session(python="3.10")
def oxidize(session: nox.Session) -> None:
"""
Build a doc2dash binary with PyOxidizer.
"""
env = os.environ.copy()
env["PIP_REQUIRE_VIRTUALENV"] = "0"

# standalone_static doesn't work on macOS and gives us musl builds on
# Linux. Since you get one binary on both, dynamic standalone ~should be
# fine~.
if sys.platform == "win32":
flavor = "standalone_static"
# standalone_static doesn't work on macOS.
if sys.platform == "darwin":
flavor = "standalone_dynamic"
else:
flavor = "standalone"
flavor = "standalone_static"

session.install("pyoxidizer")

Expand Down

0 comments on commit eb45284

Please sign in to comment.