1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
Description: Make adjustmanets so as to use system's spoa library
Author: Nilesh Patra <nilesh@debian.org>
Forwarded: not-needed
Last-Update: 2021-07-10
--- a/setup.py
+++ b/setup.py
@@ -69,11 +69,6 @@ def build_spoa():
"-D", "spoa_use_simde=ON",
"-D", "spoa_use_simde_nonvec=ON",
"-D", "spoa_use_simde_openmp=ON"]
- run(
- ["cmake"] + extra_flags + [
- "-D", "CMAKE_BUILD_TYPE=Release",
- "-D", "CMAKE_CXX_FLAGS='-I ../vendor/cereal/include/ -fPIC '",
- ".."], cwd=bdir)
run("make", cwd=bdir)
@@ -126,7 +121,7 @@ ext_modules = [
],
language='c++',
extra_objects=[
- LIB_SPOA
+ '/usr/lib/' + os.getenv('DEB_HOST_MULTIARCH') + '/libspoa.so'
],
),
--- a/pyspoa.cpp
+++ b/pyspoa.cpp
@@ -1,4 +1,4 @@
-#include "spoa.hpp"
+#include "spoa/spoa.hpp"
#define PYBIND11_DETAILED_ERROR_MESSAGES // for type information in casting errors
#include <pybind11/stl.h>
|