We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e46e2 commit 8df9297Copy full SHA for 8df9297
devtools/build.py
@@ -6,11 +6,13 @@
6
7
# Set the current working dir to parent directory
8
sys.path.append(Path.cwd().parent.as_posix())
9
-os.chdir("..")
10
-CATALOGS = ("build", "dist")
11
+CATALOGS = ("build", "dist")
12
BUILD_CMD = "python -m setup sdist bdist_wheel".split()
13
+
14
if __name__ == "__main__":
15
- [shutil.rmtree(i) for i in CATALOGS]
+ subprocess.Popen(BUILD_CMD)
16
+ [shutil.rmtree(i) for i in CATALOGS if Path(i).exists()]
17
subprocess.run(BUILD_CMD)
18
0 commit comments