File: multiarch.patch

package info (click to toggle)
pycuda 2025.1.2~dfsg-1
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 1,680 kB
  • sloc: python: 13,445; cpp: 6,969; makefile: 70; sh: 1
file content (17 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Andreas Beckmann <anbe@debian.org>
Description: search libs in lib/${DEB_HOST_MULTIARCH}

--- a/setup.py
+++ b/setup.py
@@ -47,6 +47,11 @@ def get_config_schema():
     ldflags_default = []
 
     lib64 = "lib64"
+
+    from os import environ
+    if environ.get("DEB_HOST_MULTIARCH"):
+        lib64 = "lib/" + environ.get("DEB_HOST_MULTIARCH")
+
     import sys
 
     if sys.platform.startswith("win"):