File: non-linux

package info (click to toggle)
pymupdf 1.17.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,956 kB
  • sloc: python: 3,967; sh: 38; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 701 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix imports and shared libs for non-Linux platforms

--- a/setup.py
+++ b/setup.py
@@ -53,13 +53,13 @@ else:
         "fitz._fitz",
         ["fitz/fitz.i"],
         include_dirs=[  # we need the path of the MuPDF's headers
+            "/usr/include/mupdf",
             "./mupdf/include",
             "./mupdf/include/mupdf",
         ],
         libraries=[  # these are needed in Windows
-            "libmupdf",
-            "libresources",
-            "libthirdparty",
+            "mupdf",
+            "mujs", "harfbuzz", "jbig2dec", "jpeg", "freetype", "png16", "openjp2",
         ],
         extra_link_args=["/NODEFAULTLIB:MSVCRT"],
         # x86 dir of libmupdf.lib etc.