File: update-python-extension-directory

package info (click to toggle)
ueberzug 18.1.9-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 452 kB
  • sloc: python: 1,886; sh: 327; ansic: 268; makefile: 16
file content (27 lines) | stat: -rw-r--r-- 689 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
22
23
24
25
26
27
Description: Keep Xshm compiled extension in ueberzug directory
Author: Nick Morrott <nickm@debian.org>
Forwarded: not-needed
Last-Update: 2022-03-29
---
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@
     },
     ext_modules=[
         distutils.core.Extension(
-            "Xshm", ["Xshm/Xshm.c"], libraries=["X11", "Xext"]),
+            "ueberzug.Xshm", ["Xshm/Xshm.c"], libraries=["X11", "Xext"]),
     ],
 
     # Versions should comply with PEP 440:
--- a/ueberzug/ui.py
+++ b/ueberzug/ui.py
@@ -13,7 +13,7 @@
 import ueberzug.xutil as xutil
 import ueberzug.geometry as geometry
 import ueberzug.scaling as scaling
-import Xshm
+from . import Xshm
 
 
 def roundup(value, unit):