summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-04-01 09:30:46 (GMT)
committerNed Deily <nad@acm.org>2012-04-01 09:30:46 (GMT)
commit458a6fbaa8236cbb8c8d697e5b43d088539033b7 (patch)
tree98584775de28833cd47521c1055f97f2a5293e50 /setup.py
parent4d4c0eeaf59a78be6c29bc774c9d23e82dc59647 (diff)
downloadcpython-458a6fbaa8236cbb8c8d697e5b43d088539033b7.zip
cpython-458a6fbaa8236cbb8c8d697e5b43d088539033b7.tar.gz
cpython-458a6fbaa8236cbb8c8d697e5b43d088539033b7.tar.bz2
Issue #14463: Prevent _decimal.so compile failures in OS X installer builds.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index eae1b85..fb8c4b6 100644
--- a/setup.py
+++ b/setup.py
@@ -1804,7 +1804,11 @@ class PyBuildExt(build_ext):
sources = ['_decimal/_decimal.c']
depends = ['_decimal/docstrings.h']
else:
- include_dirs = ['./Modules/_decimal/libmpdec']
+ srcdir = sysconfig.get_config_var('srcdir')
+ include_dirs = [os.path.abspath(os.path.join(srcdir,
+ 'Modules',
+ '_decimal',
+ 'libmpdec'))]
libraries = []
sources = [
'_decimal/_decimal.c',