summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-03-30 00:09:41 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-03-30 11:44:10 +0200
commitf64bca0b7f0008e5fb914044f04f8c20730bf529 (patch)
tree0f62e42cd306724701744efbb458406c9aef15cf /config
parentd25eb3ef32cc485ecb0ddc64aa4f6ecbd40a981c (diff)
Add py_prefix property
Diffstat (limited to 'config')
-rw-r--r--config/windows.config6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/windows.config b/config/windows.config
index 911d1fa..62a3c6e 100644
--- a/config/windows.config
+++ b/config/windows.config
@@ -34,6 +34,8 @@ prefix=prefix or os.path.expanduser('~/cerbero/dist/%s' % buildname)
sources=sources or os.path.expanduser('~/cerbero/sources/%s' % buildname)
cache_file=buildname
+py_prefix='lib/python2.7'
+
if not toolchain_prefix:
toolchain_prefix = os.path.join(prefix, '..', '..', 'mingw', _path)
@@ -71,8 +73,8 @@ os.environ['lt_cv_deplibs_check_method'] = 'pass_all'
# Python
os.environ['am_cv_python_version'] = '2.7'
os.environ['am_cv_python_platform'] = 'win32'
-os.environ['am_cv_python_pyexecdir'] = '%s/lib/Python27/Lib/site-packages' % prefix
-os.environ['am_cv_python_pythondir'] = '%s/lib/Python27/Lib/site-packages' % prefix
+os.environ['am_cv_python_pyexecdir'] = '%s/%s/Lib/site-packages' % (prefix, py_prefix)
+os.environ['am_cv_python_pythondir'] = '%s/%s/Lib/site-packages' % (prefix, py_prefix)
os.environ['PYTHON_INCLUDES'] = '-I%s/include/Python2.7 -I%s/include/Python2.7' % (toolchain_prefix, toolchain_prefix)
os.environ['PYTHON_LIBS'] = '-lpython27'