diff options
| author | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
|---|---|---|
| committer | stainer_t <thomas.stainer@oecd-nea.org> | 2025-09-08 13:48:49 +0200 |
| commit | 7dfcc480ba1e19bd3232349fc733caef94034292 (patch) | |
| tree | 03ee104eb8846d5cc1a981d267687a729185d3f3 /script/find_pylib.py | |
Initial commit from Polytechnique Montreal
Diffstat (limited to 'script/find_pylib.py')
| -rwxr-xr-x | script/find_pylib.py | 11 |
1 files changed, 11 insertions, 0 deletions
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") |
