From 458a6fbaa8236cbb8c8d697e5b43d088539033b7 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Sun, 1 Apr 2012 02:30:46 -0700 Subject: [PATCH] Issue #14463: Prevent _decimal.so compile failures in OS X installer builds. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index eae1b85ba6f..fb8c4b604dd 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',