From b583dff16fd3cda74c46aed2bac6de1fc66c6cf2 Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Fri, 20 Jul 2018 23:11:31 +0200 Subject: [PATCH] fix --- build/get_python_library.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build/get_python_library.py b/build/get_python_library.py index 6102f65b..5749847f 100644 --- a/build/get_python_library.py +++ b/build/get_python_library.py @@ -13,8 +13,13 @@ for required_key in ("LDLIBRARY", "LIBDEST", "LIBDIR", "LIBPL"): pprint(config) raise SystemExit(1) -so_ext = config['SO'] -so_ext = so_ext[so_ext.rindex("."):] +if sys.platform == "darwin": + so_ext = "dylib" +elif sys.platform.startswith("linux"): + so_ext = "so" +else: + so_ext = "dll" + library = "*python%s*%s" % (sysconfig.get_python_version(), so_ext) pprint(library) for libpath in ('LIBDEST', 'LIBDIR', 'LIBPL'):