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 94fc16d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 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
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,6 @@ def run(self): # noqa: C901

extra_compile_args = ["--std=c++14"]
extra_link_args = []
if os.name == "nt":
extra_compile_args = ["/std:c++14", "/MD"]
extra_link_args = ["/MANIFEST"]

import Cython.Build # noqa: E402
import Cython # noqa: E402
Expand Down

0 comments on commit 94fc16d

Please sign in to comment.