Skip to content

Commit

Permalink
Do not build source package when building from onedir
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Dec 19, 2024
1 parent 3ca60c4 commit c620f85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/pkg/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def debian(
f"Building the package using the onedir artifact {str(onedir_artifact)}"
)
os.environ["SALT_ONEDIR_ARCHIVE"] = str(onedir_artifact)
buildargs = ["-uc"]
else:
if arch is None:
ctx.error(
Expand All @@ -89,14 +90,15 @@ def debian(
for key, value in new_env.items():
os.environ[key] = value
env_args.extend(["-e", key])
buildargs = ["-uc", "-us"]

env = os.environ.copy()
env["PIP_CONSTRAINT"] = str(
tools.utils.REPO_ROOT / "requirements" / "constraints.txt"
)

ctx.run("ln", "-sf", "pkg/debian/", ".")
ctx.run("debuild", *env_args, "-uc", "-us", env=env)
ctx.run("debuild", *env_args, *buildargs, env=env)

ctx.info("Done")

Expand Down

0 comments on commit c620f85

Please sign in to comment.