aboutsummaryrefslogtreecommitdiff
path: root/modules/FindLibPython.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindLibPython.py')
-rw-r--r--modules/FindLibPython.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/FindLibPython.py b/modules/FindLibPython.py
new file mode 100644
index 00000000..ec21b338
--- /dev/null
+++ b/modules/FindLibPython.py
@@ -0,0 +1,13 @@
+
+# Copyright (c) 2007, Simon Edwards <simon@simonzone.com>
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+import sys
+import distutils.sysconfig
+
+print("exec_prefix:%s" % sys.exec_prefix)
+print("short_version:%s" % sys.version[:3])
+print("long_version:%s" % sys.version.split()[0])
+print("py_inc_dir:%s" % distutils.sysconfig.get_python_inc())
+print("site_packages_dir:%s" % distutils.sysconfig.get_python_lib(plat_specific=1))