Skip to content
Closed
Prev Previous commit
Next Next commit
chore: address comment regarding logic in makefile
  • Loading branch information
AntoniaSzecsi committed Jul 29, 2025
commit 4cdadd6f54f6d5cfd06a5dc656d61d2ee5a102be
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ clean:

.PHONY: build
build: clean
ifeq ($(shell uname),Linux)
BUILD=true python3 scripts/dev.py build
else
python3 scripts/dev.py build
endif

.PHONY: setup-codebuild-agent
setup-codebuild-agent:
Expand Down
8 changes: 7 additions & 1 deletion scripts/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,14 @@ def clean():
def build():
print("Building package")
env = os.environ.copy()
if os.getenv("BUILD") == "true":

# Set BUILD=true on Linux for native compilation
import platform
if platform.system() == "Linux":
env["BUILD"] = "true"
elif os.getenv("BUILD") == "true":
env["BUILD"] = "true"

run([sys.executable, "setup.py", "sdist", "bdist_wheel"], env=env)


Expand Down
Loading