diff options
author | Roman Lacko <backup.rlacko@gmail.com> | 2012-06-04 17:01:14 +0200 |
---|---|---|
committer | Roman Lacko <backup.rlacko@gmail.com> | 2012-06-04 17:01:14 +0200 |
commit | f4bd4fb7b530f1ed8a2262bcffb6249985febb93 (patch) | |
tree | 2081cf5d7054cb609d47e093ff5ef1165b21c34f /setup.py | |
parent | d65e4d6111c2797086a05fbda91b9242fd13b1ad (diff) |
fix search libdir on windows
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -196,6 +196,12 @@ class pyside_build(_build): py_version = "%s.%s" % (sys.version_info[0], sys.version_info[1]) py_include_dir = get_config_var("INCLUDEPY") py_libdir = get_config_var("LIBDIR") + if py_libdir is None or not os.path.exists(py_libdir): + py_prefix = get_config_var("prefix") + if sys.platform == "win32": + py_libdir = os.path.join(py_prefix, "libs") + else: + py_libdir = os.path.join(py_prefix, "lib") py_executable = sys.executable dbgPostfix = "" if build_type == "Debug": |