From fd61cf7b86f2b7c61de7794b616c80c23f0ca364 Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 17 Jul 2024 16:44:58 +0200 Subject: Bump to 0.3.2. --- setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ac4958e..4831b6a 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,8 @@ class CustomTommath(Command): def run(self) -> None: if self.build_lib: - subprocess.run(["make", "host", "nano", "stm32f0", "stm32f3"], cwd="ext") - tommath_dir = Path("pyecsca/codegen/tommath") - shutil.copytree(tommath_dir, self.build_lib / tommath_dir) + tommath_dir = Path("..") / self.build_lib / Path("pyecsca/codegen/tommath") + subprocess.run(["make", "host", "nano", "stm32f0", "stm32f3", f"TOMMATH_DIR={tommath_dir}"], cwd="ext") -- cgit v1.3.1