File: sanitize-setup.patch

package info (click to toggle)
jube 2.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,376 kB
  • sloc: python: 7,531; xml: 821; sh: 180; makefile: 14
file content (29 lines) | stat: -rw-r--r-- 1,203 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
28
29
Description: sanitize installation paths
Forwarded: not-needed

--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,7 @@ except ImportError:
     from distutils.core import setup
 
 SHARE_PATH = "share/jube"
+DOC_PATH = "share/doc/jube"
 
 
 def rel_path(directory, new_root=""):
@@ -70,11 +71,11 @@ config = {'name': 'JUBE',
           'packages': ['jube2','jube2.result_types','jube2.util'],
           'package_data': {'jube2': ['help.txt']},
-          'data_files': ([(os.path.join(SHARE_PATH, 'docu'),
+          'data_files': ([(DOC_PATH,
                            ['docs/JUBE.pdf']),
-                          (SHARE_PATH, ['AUTHORS','LICENSE','RELEASE_NOTES'])] +
-                         rel_path("examples", SHARE_PATH) +
+                          (DOC_PATH, ['AUTHORS','RELEASE_NOTES'])] +
+                         rel_path("examples", DOC_PATH) +
                          rel_path("contrib", SHARE_PATH) +
-                         rel_path("platform", SHARE_PATH)),
+                         rel_path("platform", DOC_PATH)),
           'scripts': ['bin/jube', 'bin/jube-autorun'],
           'long_description': (
               "Automating benchmarks is important for reproducibility and "