Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b63583

Browse files
committed
Issue #15560: Fix building _sqlite3 extension on OS X with an SDK.
1 parent 9ccf82d commit 9b63583

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ Tests
304304
Build
305305
-----
306306

307+
- Issue #15560: Fix building _sqlite3 extension on OS X with an SDK.
308+
307309
- Issue #8847: Disable COMDAT folding in Windows PGO builds.
308310

309311
- Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs.

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,12 +1041,12 @@ class db_found(Exception): pass
10411041
if host_platform == 'darwin':
10421042
sysroot = macosx_sdk_root()
10431043

1044-
for d in inc_dirs + sqlite_inc_paths:
1045-
f = os.path.join(d, "sqlite3.h")
1046-
1044+
for d_ in inc_dirs + sqlite_inc_paths:
1045+
d = d_
10471046
if host_platform == 'darwin' and is_macosx_sdk_path(d):
1048-
f = os.path.join(sysroot, d[1:], "sqlite3.h")
1047+
d = os.path.join(sysroot, d[1:])
10491048

1049+
f = os.path.join(d, "sqlite3.h")
10501050
if os.path.exists(f):
10511051
if sqlite_setup_debug: print("sqlite: found %s"%f)
10521052
with open(f) as file:

0 commit comments

Comments
 (0)