Skip to content

Commit ada7759

Browse files
author
AntoniaSzecsi
committed
Fix the env variable check
1 parent a41522e commit ada7759

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/dev.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def clean():
5151
def build():
5252
print("Building package")
5353
env = os.environ.copy()
54-
env["BUILD"] = "true"
54+
if os.getenv("BUILD") == "true":
55+
env["BUILD"] = "true"
5556
run([sys.executable, "setup.py", "sdist", "bdist_wheel"], env=env)
5657

5758

@@ -70,6 +71,7 @@ def main():
7071
"format": format_code,
7172
"clean": clean,
7273
"build": build,
74+
7375
}
7476

7577
command_map[args.command]()

0 commit comments

Comments
 (0)