Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasah committed Oct 23, 2023
1 parent 327a1ee commit d26d070
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions buildutils/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,13 @@ def build_libcapnp(bundle_dir, build_dir): # noqa: C901

# Enable ninja for compilation if available
build_type = []
if shutil.which("ninja"):
if shutil.which("ninja"):
build_type = ["-G", "Ninja"]

# Determine python shell architecture for Windows
python_arch = 8 * struct.calcsize("P")
build_arch = []
build_flags = []
if os.name == "nt":
if python_arch == 64:
build_arch_flag = "x64"
elif python_arch == 32:
build_arch_flag = "Win32"
else:
raise RuntimeError("Unknown windows build arch")
build_arch = ["-A", build_arch_flag]
build_flags = ["--config", "Release"]
print("Building module for {}".format(python_arch))

if not shutil.which("cmake"):
raise RuntimeError("Could not find cmake in your path!")
Expand Down

0 comments on commit d26d070

Please sign in to comment.