diff options
author | Ned Deily <nad@acm.org> | 2012-08-05 14:42:45 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-08-05 14:42:45 -0700 |
commit | 670280470d1da26eb047584ed6e6c22f36bb01f2 (patch) | |
tree | 36baaee8979560fa1e7f3a4f390bdb28e7b6a4aa /setup.py | |
parent | 947f358a069c9141c0230e440ab5cba07df0f87f (diff) | |
download | cpython-git-670280470d1da26eb047584ed6e6c22f36bb01f2.tar.gz |
Issue #15560: Fix building _sqlite3 extension on OS X with an SDK.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1028,12 +1028,12 @@ class PyBuildExt(build_ext): if sys.platform == 'darwin': sysroot = macosx_sdk_root() - for d in inc_dirs + sqlite_inc_paths: - f = os.path.join(d, "sqlite3.h") - + for d_ in inc_dirs + sqlite_inc_paths: + d = d_ if sys.platform == 'darwin' and is_macosx_sdk_path(d): - f = os.path.join(sysroot, d[1:], "sqlite3.h") + d = os.path.join(sysroot, d[1:]) + f = os.path.join(d, "sqlite3.h") if os.path.exists(f): if sqlite_setup_debug: print "sqlite: found %s"%f incf = open(f).read() |