From ff6371d9798395bfc994a0c66d662dfb87a2e3c8 Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Mon, 20 Nov 2023 10:23:08 +0530 Subject: [PATCH] Add config to build directory --- build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.py b/build.py index 1d8c094d54ce18..ffc81e01e6f6c8 100755 --- a/build.py +++ b/build.py @@ -238,6 +238,9 @@ def main() -> int: with open(os.path.join(compiled_src_path, "__init__.py"), "w") as init_file: init_file.write(contents) + # copy cibuildwheel config to build dir + shutil.copy("./cibw_config.toml", build_dir) + # setup.py contains the `pycompile` console script, present in `__init__.py` with contextlib.chdir(build_dir): setup_code = dedent(