aboutsummaryrefslogtreecommitdiff
path: root/modules/FindLibPython.py
diff options
context:
space:
mode:
authorLaurent Montel <montel@kde.org>2008-10-20 07:25:08 +0000
committerLaurent Montel <montel@kde.org>2008-10-20 07:25:08 +0000
commit5376127a9774307cd37d802cc2bfe45c87961a03 (patch)
treeb041407fb15fa535c057f2449da12af11cfd1edf /modules/FindLibPython.py
parent9b249b55f98ab27a4d7c8d6c092e215a10d390ea (diff)
downloadextra-cmake-modules-5376127a9774307cd37d802cc2bfe45c87961a03.tar.gz
extra-cmake-modules-5376127a9774307cd37d802cc2bfe45c87961a03.tar.bz2
Moved here
svn path=/trunk/KDE/kdelibs/; revision=873794
Diffstat (limited to 'modules/FindLibPython.py')
-rw-r--r--modules/FindLibPython.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/FindLibPython.py b/modules/FindLibPython.py
new file mode 100644
index 00000000..4deabb9e
--- /dev/null
+++ b/modules/FindLibPython.py
@@ -0,0 +1,11 @@
+# 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))