Skip to content

Commit 363f704

Browse files
committed
Improve nauty discovery in meson
1 parent 53be4ee commit 363f704

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

pkgs/sage-conf/_sage_conf/_conf.py.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ NTL_LIBDIR = "@NTL_LIBDIR@"
3232
# Path to the ecl-config script
3333
ECL_CONFIG = "@SAGE_ECL_CONFIG@".replace('${prefix}', SAGE_LOCAL)
3434

35+
# Path to the nauty binaries; of the form "/path/to/" or "/path/to/nauty-"
3536
SAGE_NAUTY_BINS_PREFIX = "@SAGE_NAUTY_BINS_PREFIX@"
3637

3738
SAGE_ECMBIN = "@SAGE_ECMBIN@"

src/sage/meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ if get_option('SAGE_LOCAL') != ''
7070
endif
7171
foreach prog : nauty_progs
7272
nauty_check = find_program(prog, dirs: extra_bin_paths, required: false)
73+
if not nauty_check.found()
74+
nauty_check = find_program(
75+
'nauty-' + prog,
76+
dirs: extra_bin_paths,
77+
required: false,
78+
)
79+
endif
7380
if nauty_check.found()
7481
nauty_bins_prefix = nauty_check.full_path().replace(prog, '')
7582
endif

0 commit comments

Comments
 (0)