Skip to content

Commit 2faebac

Browse files
committed
build: Fix nesting output dirs when re-installing an already-built
tree.
1 parent 8474c28 commit 2faebac

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/grpcio-1.73.1/build_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
os.chdir(srcdir)
1616
os.environ["GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS"] = "2"
1717
subprocess.run(["python3", "setup.py", "build"])
18-
subprocess.run("cp -r pyb/lib*/grpc %s" % outdir, shell=True)
18+
subprocess.run("rm -rf %s && cp -r pyb/lib*/grpc %s" % (outdir, outdir), shell=True)
1919
except Exception as e:
2020
print(e)
2121
sys.exit(1)

src/protobuf-6.31.1/build_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
try:
1313
os.chdir(srcdir)
1414
subprocess.run(["python3", "setup.py", "build"])
15-
subprocess.run("cp -r build/lib*/google %s" % outdir, shell=True)
15+
subprocess.run("rm -rf %s && cp -r build/lib*/google %s" % (outdir, outdir), shell=True)
1616
except Exception as e:
1717
print(e)
1818
sys.exit(1)

src/zeroconf-0.147.0/build_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
os.chdir(srcdir)
1414
os.environ["SKIP_CYTHON"] = "1"
1515
subprocess.run(["python3", "setup.py", "build"])
16-
subprocess.run("cp -r build/lib/zeroconf %s" % outdir, shell=True)
16+
subprocess.run("rm -rf %s && cp -r build/lib/zeroconf %s" % (outdir, outdir), shell=True)
1717
except Exception as e:
1818
print(e)
1919
sys.exit(1)

0 commit comments

Comments
 (0)