File: fix_module_not_found.patch

package info (click to toggle)
luma.lcd 2.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,172 kB
  • sloc: python: 2,295; makefile: 204
file content (22 lines) | stat: -rw-r--r-- 626 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
Description: Fix ModuleNotFound error
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/1009404
Last-Update: 2022-05-15

Index: luma.lcd/setup.py
===================================================================
--- luma.lcd.orig/setup.py
+++ luma.lcd/setup.py
@@ -2,6 +2,11 @@
 # -*- coding: utf-8 -*-
 
 import setuptools
+from setuptools import setup, find_namespace_packages
 
 if __name__ == "__main__":
-    setuptools.setup()
+    setuptools.setup(
+        packages=find_namespace_packages(include=['luma']),
+        include_package_data=True,
+        namespace_packages=["luma"],
+    )