fix: parameterize DATAFLOW_EXECUTION in python wheel

This commit is contained in:
youben11
2022-10-07 16:57:50 +01:00
committed by Ayoub Benaissa
parent 89d7f065ae
commit 0987fade80
2 changed files with 7 additions and 2 deletions

View File

@@ -35,7 +35,10 @@ class MakeBuild(build_ext):
self.build_extension(ext)
def build_extension(self, ext):
cmd = ["make", "DATAFLOW_EXECUTION_ENABLED=ON", "CCACHE=ON"]
cmd = ["make", "CCACHE=ON"]
# default to dataflow_exec to ON
dataflow_build = os.environ.get("CONCRETE_COMPILER_DATAFLOW_EXECUTION_ENABLED", "ON")
cmd.append(f"DATAFLOW_EXECUTION_ENABLED={dataflow_build}")
py_exec = os.environ.get("CONCRETE_COMPILER_Python3_EXECUTABLE")
if py_exec:
cmd.append(f"Python3_EXECUTABLE={py_exec}")