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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
This patch mainly ensures that the (optional) documentation is installed to
the "correct" location:
- It removes the hard-coded installation path for documentation. This allows
the installation path to be specified at install time with the
"--install-data" parameter to "setup.py install".
- It removes some redundant documentation.
- It splits data_files into two parts, one which contains only documentation,
and one which contains all other files (currently, juse one!)
Note that setup.py is processed further in the port Makefile's post-patch
target.
-- Johann Visagie <johann@egenetics.com>
--- setup.py.orig Tue May 1 00:38:56 2001
+++ setup.py Fri May 4 17:23:15 2001
@@ -304,21 +304,7 @@
#
############################################################
-data_files = [Data_Files(copy_to='.',
- files=['docs/text/COPYRIGHT',
- 'docs/text/CREDITS',
- 'docs/text/PACKAGES',
- 'docs/text/README',
- 'docs/text/REBUILDING',
- 'docs/text/TODO',
- 'docs/ChangeLog',
- 'docs/README.cDomlette',
- 'docs/README.Cyclops',
- ]),
- Data_Files(copy_to='docs',
- files=['docs/ChangeLog',
- ]),
- Data_Files(copy_to='docs/text',
+data_files = [Data_Files(copy_to='docs/text',
files=['docs/text/COPYRIGHT',
'docs/text/CREDITS',
'docs/text/PACKAGES',
@@ -435,9 +421,6 @@
Data_Files(copy_to='test_suite/4ODS/Tools',
files=glob.glob('Ods/Tools/test_suite/*.*')),
- Data_Files(use_install_cmd='install_lib',
- copy_to='Ft/DbDom',
- files=['DbDom/dom.odl']),
Data_Files(copy_to='test_suite/DbDom',
files=['Lib/TestSuite.py']),
Data_Files(copy_to='test_suite/DbDom',
@@ -457,8 +440,10 @@
Data_Files(copy_to='demo/4ODS/book_mark_manager',
files=glob.glob('Ods/demo/book_mark_manager/*.*')),
]
-for df in data_files:
- df.base_dir = '$base/doc/$dist_name-$dist_version'
+data_files2 = [Data_Files(use_install_cmd='install_lib',
+ copy_to='Ft/DbDom',
+ files=['DbDom/dom.odl'])
+ ]
############################################################
#
@@ -545,7 +530,7 @@
py_files=py_files,
l10n=l10n,
- data_files=data_files,
+ data_files=data_files + data_files2,
ext_modules=ext_modules,
scripts=DistExt.EnsureScripts('Xslt/bin/4xslt',
'Rdf/exec/4rdf',
|