ports/databases/py-apsw/patches/patch-tests_py

18 lines
896 B
Text

>>> print apsw.sqlite3_sourceid()
OpenBSD
Index: tests.py
--- tests.py.orig
+++ tests.py
@@ -8694,9 +8694,9 @@ def setup(write=write):
if getattr(memdb, "enableloadextension", None) and not os.path.exists(LOADEXTENSIONFILENAME):
write("Not doing LoadExtension test. You need to compile the extension first\n")
if sys.platform.startswith("darwin"):
- write(" gcc -fPIC -bundle -o " + LOADEXTENSIONFILENAME + " -I. -Isqlite3 src/testextension.c\n")
+ write(" cc -fPIC -bundle -o " + LOADEXTENSIONFILENAME + " -I. -Isqlite3 src/testextension.c\n")
else:
- write(" gcc -fPIC -shared -o " + LOADEXTENSIONFILENAME + " -I. -Isqlite3 src/testextension.c\n")
+ write(" cc -fPIC -shared -o " + LOADEXTENSIONFILENAME + " -I. -Isqlite3 src/testextension.c\n")
del APSW.testLoadExtension
sys.stdout.flush()