summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Lacko <backup.rlacko@gmail.com>2012-06-04 17:01:14 +0200
committerRoman Lacko <backup.rlacko@gmail.com>2012-06-04 17:01:14 +0200
commitf4bd4fb7b530f1ed8a2262bcffb6249985febb93 (patch)
tree2081cf5d7054cb609d47e093ff5ef1165b21c34f
parentd65e4d6111c2797086a05fbda91b9242fd13b1ad (diff)
fix search libdir on windows
-rw-r--r--setup.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 94d74fb3..2248ddb8 100644
--- a/setup.py
+++ b/setup.py
@@ -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":