- Don't define HAVE_LOAD_EXTENSION when sqlite3 is compiled with EXTENSION
option turned off PR: ports/156076 Submitted by: Pan Tsu <inyaoo@gmail.com>
This commit is contained in:
parent
9346b215f0
commit
6744e39a0f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=301540
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= sqlite3
|
||||
PORTVERSION= ${PYTHON_PORTVERSION}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= databases python
|
||||
MASTER_SITES= ${PYTHON_MASTER_SITES}
|
||||
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
|
||||
|
@ -32,6 +32,12 @@ sqlite_srcs = [
|
||||
'_sqlite/statement.c',
|
||||
'_sqlite/util.c']
|
||||
|
||||
try:
|
||||
import ctypes
|
||||
ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
|
||||
except AttributeError:
|
||||
macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
|
||||
|
||||
setup(name = "_sqlite3",
|
||||
description = "SQLite 3 extension to Python",
|
||||
|
||||
|
@ -31,6 +31,12 @@ sqlite_srcs = [
|
||||
'_sqlite/statement.c',
|
||||
'_sqlite/util.c']
|
||||
|
||||
try:
|
||||
import ctypes
|
||||
ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
|
||||
except AttributeError:
|
||||
macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
|
||||
|
||||
setup(name = "_sqlite3",
|
||||
description = "SQLite 3 extension to Python",
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user