From 7dfcc480ba1e19bd3232349fc733caef94034292 Mon Sep 17 00:00:00 2001 From: stainer_t Date: Mon, 8 Sep 2025 13:48:49 +0200 Subject: Initial commit from Polytechnique Montreal --- script/find_pylib.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 script/find_pylib.py (limited to 'script/find_pylib.py') diff --git a/script/find_pylib.py b/script/find_pylib.py new file mode 100755 index 0000000..3cb8420 --- /dev/null +++ b/script/find_pylib.py @@ -0,0 +1,11 @@ +#!/bin/env python3 +""" generation of pylib variable for use in Makefiles """ + +from sysconfig import get_config_var +pylib = get_config_var("LIBDIR") +if pylib.find('lib64') >= 0: + print('lib64') +elif pylib.find('lib') >= 0: + print('lib') +else: + raise RuntimeError("find_pylib: doesn't contains lib substring") -- cgit v1.2.3