From 949bb943c8c50de24b129c61b6ecbeac1ecaa258 Mon Sep 17 00:00:00 2001 From: Simon Dominik Niko Fink Date: Thu, 14 Sep 2023 16:15:24 +0200 Subject: [PATCH] Revert "switch to debug build" This reverts commit 8fd4a1f7097cee94d86099fbe77888b4ae444414. --- hatch_build.py | 4 ++-- pyproject.toml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hatch_build.py b/hatch_build.py index 4bed1cf..e1ac5b2 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -119,10 +119,10 @@ def initialize(self, version, build_data): with open(comp_spec_cmake, "wt") as f: f.writelines("# " + l if "march=native" in l and not l.strip().startswith("#") else l for l in lines) - CONFIG = "Debug" + CONFIG = "Release" flags = [ "-DCMAKE_BUILD_TYPE=" + CONFIG, "-DBUILD_SHARED_LIBS=ON", "-DCMAKE_INSTALL_PREFIX=%s" % self.cmake_install_dir, - "-DOGDF_USE_ASSERT_EXCEPTIONS=ON", # "-DOGDF_USE_ASSERT_EXCEPTIONS_WITH=ON_LIBUNWIND", + # "-DOGDF_USE_ASSERT_EXCEPTIONS=ON", # "-DOGDF_USE_ASSERT_EXCEPTIONS_WITH=ON_LIBUNWIND", "-DOGDF_MEMORY_MANAGER=POOL_TS", # "-DOGDF_MEMORY_MANAGER=MALLOC_TS", "-DOGDF_LEAK_CHECK=ON", "-DOGDF_WARNING_ERRORS=OFF", diff --git a/pyproject.toml b/pyproject.toml index e8c5c2d..167d429 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,11 +23,11 @@ environment-pass = ["GITHUB_ACTIONS"] manylinux-x86_64-image = "manylinux_2_28" # manylinux2014 uses a too old gcc (wlav/cppyy#70) build-frontend = "build" before-build = "pip debug --verbose" -#test-command = [ -# "pip install git+https://github.com/N-Coder/ogdf-python.git", -# "python -m ogdf_python", -# "python {project}/test_layouts.py", -#] +test-command = [ + "pip install git+https://github.com/N-Coder/ogdf-python.git", + "python -m ogdf_python", + "python {project}/test_layouts.py", +] [tool.hatch.build] ignore-vcs = true # "install" may not be excluded, otherwise weird things happen