summaryrefslogtreecommitdiff
path: root/databases/py-peewee/patches/patch-setup.py
blob: 4a0c4d9a4de56e12bcb41da18d0eaa294dc1c6b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-setup.py,v 1.3 2020/11/09 09:29:12 adam Exp $

Find libsqlite3.

--- setup.py.orig	2018-08-16 18:40:47.000000000 +0000
+++ setup.py
@@ -73,8 +73,9 @@ def _have_sqlite_extension_support():
     success = False
     try:
         compiler.link_shared_object(
-            compiler.compile([src_file], output_dir=tmp_dir),
+            compiler.compile([src_file], output_dir=tmp_dir, include_dirs=['@BUILDLINK_PREFIX.sqlite3@/include']),
             bin_file,
+            library_dirs=['@BUILDLINK_PREFIX.sqlite3@/lib'],
             libraries=['sqlite3'])
     except CCompilerError:
         print('unable to compile sqlite3 C extensions - missing headers?')