Issue #14463: Prevent _decimal.so compile failures in OS X installer builds.

This commit is contained in:
Ned Deily 2012-04-01 02:30:46 -07:00
parent 4d4c0eeaf5
commit 458a6fbaa8
1 changed files with 5 additions and 1 deletions

View File

@ -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',