Skip to content

Commit 73cf25e

Browse files
author
Lukas Puehringer
committed
build: constrain version in verify_release script
In #2528 we added a workaround in cd.yml, which allows pinning the build backend version AND having Dependabot autodupates for it. This workaround also needs to be applied verify_release for reproducible builds verification. Signed-off-by: Lukas Puehringer <lukas.puehringer@nyu.edu>
1 parent e3dc095 commit 73cf25e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

verify_release

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@ def build(build_dir: str) -> str:
4545
git_cmd = ["git", "clone", "--quiet", orig_dir, src_dir]
4646
subprocess.run(git_cmd, stdout=subprocess.DEVNULL, check=True)
4747

48+
# patch env to constrain build backend version as we do in cd.yml
49+
env = os.environ.copy()
50+
env["PIP_CONSTRAINT"] = "requirements/build.txt"
51+
4852
build_cmd = ["python3", "-m", "build", "--outdir", build_dir, src_dir]
49-
subprocess.run(build_cmd, stdout=subprocess.DEVNULL, check=True)
53+
subprocess.run(
54+
build_cmd, stdout=subprocess.DEVNULL, check=True, env=env
55+
)
5056

5157
build_version = None
5258
for filename in os.listdir(build_dir):

0 commit comments

Comments
 (0)