| 1 |
Description: Use Debian nauty instead of an embedded copy. |
| 2 |
Author: Doug Torrance <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
Last-Update: 2021-08-01 |
| 5 |
|
| 6 |
--- a/setup.py |
| 7 |
+++ b/setup.py |
| 8 |
@@ -59,13 +59,8 @@ |
| 9 |
name = MODULE + '.nautywrap', |
| 10 |
sources = [ pynauty_dir + '/' + 'nautywrap.c', ], |
| 11 |
extra_compile_args = [ '-O4', '-fPIC' ], |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
+ libraries = ['nauty'], |
| 20 |
+ include_dirs = [ pynauty_dir ] |
| 21 |
) |
| 22 |
ext_modules = [ ext_pynauty ] |
| 23 |
|
| 24 |
@@ -90,6 +85,5 @@ |
| 25 |
include_package_data=True, |
| 26 |
data_files = data_files, |
| 27 |
ext_modules = ext_modules, |
| 28 |
|
| 29 |
classifiers = classifiers, |
| 30 |
) |
| 31 |
--- a/src/pynauty/nautywrap.c |
| 32 |
+++ b/src/pynauty/nautywrap.c |
| 33 |
@@ -14,7 +14,7 @@ |
| 34 |
|
| 35 |
#define PY_SSIZE_T_CLEAN |
| 36 |
#include <Python.h> |
| 37 |
|
| 38 |
+#include <nauty/nauty.h> |
| 39 |
#include <nautywrap.h> |
| 40 |
|
| 41 |
|
| 42 |
--- a/src/pynauty/nautywrap.h |
| 43 |
+++ b/src/pynauty/nautywrap.h |
| 44 |
@@ -13,7 +13,7 @@ |
| 45 |
*/ |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
+#include <nauty/nauty.h> |
| 50 |
|
| 51 |
#define WORKSPACE_FACTOR 66 |
| 52 |
#define NUM_GENS_INCR 500 |