Commits

Ned Deily  committed ac60138

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

  • Participants
  • Parent commits 0e11774

Comments (0)

Files changed (1)

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