[elbe-devel] [PATCH 4/7] Move examples installation to debianization

Bastian Germann bage at linutronix.de
Wed Nov 2 19:28:16 CET 2022


setuptools' data_files should not contain absolute paths.
Remove them. Most of them are contained in the installation anyway.
Install the examples as part of the debian package, which would
otherwise be missing.

Signed-off-by: Bastian Germann <bage at linutronix.de>
---
 debian/elbe-doc.examples |  1 +
 setup.py                 | 11 -----------
 2 files changed, 1 insertion(+), 11 deletions(-)
 create mode 100644 debian/elbe-doc.examples

diff --git a/debian/elbe-doc.examples b/debian/elbe-doc.examples
new file mode 100644
index 0000000000..e39721e20f
--- /dev/null
+++ b/debian/elbe-doc.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/setup.py b/setup.py
index 6c776fd1fc..5ac971c5b6 100644
--- a/setup.py
+++ b/setup.py
@@ -73,15 +73,4 @@ setup(name='elbe',
                     'schema': ["dbsfed.xsd", "xml.xsd"]},
       scripts=['elbe'],
       cmdclass={"install": my_install},
-      data_files=[
-          ('/usr/share/doc/elbe-doc/',
-           glob.glob("docs/elbe-schema-reference*")),
-          ('/usr/share/doc/elbe-doc/',
-           glob.glob("docs/elbeoverview-en*")),
-          ('/usr/share/doc/elbe-doc/examples',
-           glob.glob("examples/*xml")),
-          ('/usr/share/doc/elbe-doc/examples/includes/prod',
-           glob.glob("examples/includes/prod/*.xml")),
-          ('/usr/share/doc/elbe-doc/examples/includes/devel',
-           glob.glob("examples/includes/devel/*.xml"))],
       )
-- 
2.30.2



More information about the elbe-devel mailing list