annotate setup.py @ 4584:0dbfbe73371d

remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 15 Feb 2009 04:36:08 +0100
parents 436048b821a5
children e7f1cf9eeb96
rev   line source
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1 #!/usr/bin/env python
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 # -*- coding: iso-8859-1 -*-
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
3 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4 MoinMoin installer
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
5
1179
f82f71d052cd updated README, setup.py comments
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1156
diff changeset
6 @copyright: 2001-2005 by Jürgen Hermann <jh@web.de>,
3115
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3090
diff changeset
7 2006-2007 by MoinMoin:ThomasWaldmann
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
8 @license: GNU GPL, see COPYING for details.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
9 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
10
1180
c1c0d7f6f2b4 remove string module usage, some other cosmetic changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1179
diff changeset
11 import os, sys, glob
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
12
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
13 import distutils
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
14 from distutils.core import setup
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
15 from distutils.command.build_scripts import build_scripts
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
16
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
17 from MoinMoin.version import release, revision
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
18
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
19
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
20 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
21 ### Helpers
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
22 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
23
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
24 def isbad(name):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
25 """ Whether name should not be installed """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
26 return (name.startswith('.') or
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
27 name.startswith('#') or
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
28 name.endswith('.pickle') or
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
29 name == 'CVS')
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
30
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
31 def isgood(name):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
32 """ Whether name should be installed """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
33 return not isbad(name)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
34
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
35 def makeDataFiles(prefix, dir):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
36 """ Create distutils data_files structure from dir
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
37
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
38 distutil will copy all file rooted under dir into prefix, excluding
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
39 dir itself, just like 'ditto src dst' works, and unlike 'cp -r src
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
40 dst, which copy src into dst'.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
41
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
42 Typical usage:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
43 # install the contents of 'wiki' under sys.prefix+'share/moin'
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
44 data_files = makeDataFiles('share/moin', 'wiki')
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
45
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
46 For this directory structure:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
47 root
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
48 file1
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
49 file2
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
50 dir
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
51 file
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
52 subdir
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
53 file
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
54
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
55 makeDataFiles('prefix', 'root') will create this distutil data_files structure:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
56 [('prefix', ['file1', 'file2']),
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
57 ('prefix/dir', ['file']),
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
58 ('prefix/dir/subdir', ['file'])]
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
59
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
60 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
61 # Strip 'dir/' from of path before joining with prefix
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
62 dir = dir.rstrip('/')
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
63 strip = len(dir) + 1
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
64 found = []
933
a03c030a62c5 make setup.py work with python2.3 AND copy *.po to package dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 901
diff changeset
65 os.path.walk(dir, visit, (prefix, strip, found))
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
66 return found
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
67
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
68 def visit((prefix, strip, found), dirname, names):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
69 """ Visit directory, create distutil tuple
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
70
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
71 Add distutil tuple for each directory using this format:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
72 (destination, [dirname/file1, dirname/file2, ...])
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
73
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
74 distutil will copy later file1, file2, ... info destination.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
75 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
76 files = []
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
77 # Iterate over a copy of names, modify names
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
78 for name in names[:]:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
79 path = os.path.join(dirname, name)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
80 # Ignore directories - we will visit later
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
81 if os.path.isdir(path):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
82 # Remove directories we don't want to visit later
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
83 if isbad(name):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
84 names.remove(name)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
85 continue
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
86 elif isgood(name):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
87 files.append(path)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
88 destination = os.path.join(prefix, dirname[strip:])
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
89 found.append((destination, files))
933
a03c030a62c5 make setup.py work with python2.3 AND copy *.po to package dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 901
diff changeset
90
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
91
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
92 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
93 ### Build script files
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
94 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
95
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
96 class build_scripts_create(build_scripts):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
97 """ Overload the build_scripts command and create the scripts
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
98 from scratch, depending on the target platform.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
99
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
100 You have to define the name of your package in an inherited
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
101 class (due to the delayed instantiation of command classes
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
102 in distutils, this cannot be passed to __init__).
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
103
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
104 The scripts are created in an uniform scheme: they start the
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
105 run() function in the module
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
106
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
107 <packagename>.script.<mangled_scriptname>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
108
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
109 The mangling of script names replaces '-' and '/' characters
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1869
diff changeset
110 with '-' and '.', so that they are valid module paths.
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
111 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
112 package_name = None
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
113
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
114 def copy_scripts(self):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
115 """ Create each script listed in 'self.scripts'
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
116 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
117 if not self.package_name:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
118 raise Exception("You have to inherit build_scripts_create and"
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
119 " provide a package name")
933
a03c030a62c5 make setup.py work with python2.3 AND copy *.po to package dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 901
diff changeset
120
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
121 self.mkpath(self.build_dir)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
122 for script in self.scripts:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
123 outfile = os.path.join(self.build_dir, os.path.basename(script))
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
124
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
125 #if not self.force and not newer(script, outfile):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
126 # self.announce("not copying %s (up-to-date)" % script)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
127 # continue
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
128
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
129 if self.dry_run:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
130 self.announce("would create %s" % outfile)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
131 continue
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
132
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
133 module = os.path.splitext(os.path.basename(script))[0]
1180
c1c0d7f6f2b4 remove string module usage, some other cosmetic changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1179
diff changeset
134 module = module.replace('-', '_').replace('/', '.')
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
135 script_vars = {
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
136 'python': os.path.normpath(sys.executable),
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
137 'package': self.package_name,
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
138 'module': module,
1832
b180f047d918 comments only: cleaned up TODO, XXX, ...
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1472
diff changeset
139 'package_location': '/usr/lib/python/site-packages', # FIXME: we need to know the correct path
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
140 }
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
141
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
142 self.announce("creating %s" % outfile)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
143 file = open(outfile, 'w')
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
144
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
145 try:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
146 if sys.platform == "win32":
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
147 file.write('@echo off\n'
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
148 'if NOT "%%_4ver%%" == "" %(python)s -c "from %(package)s.script.%(module)s import run; run()" %%$\n'
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
149 'if "%%_4ver%%" == "" %(python)s -c "from %(package)s.script.%(module)s import run; run()" %%*\n'
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
150 % script_vars)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
151 else:
778
c02c3bcad99b add some comment to POSIX platform moin command how to fix when it does not find MoinMoin module
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 757
diff changeset
152 file.write("#! %(python)s\n"
c02c3bcad99b add some comment to POSIX platform moin command how to fix when it does not find MoinMoin module
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 757
diff changeset
153 "#Fix and uncomment those 2 lines if your moin command doesn't find the MoinMoin package:\n"
c02c3bcad99b add some comment to POSIX platform moin command how to fix when it does not find MoinMoin module
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 757
diff changeset
154 "#import sys\n"
c02c3bcad99b add some comment to POSIX platform moin command how to fix when it does not find MoinMoin module
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 757
diff changeset
155 "#sys.path.insert(0, '%(package_location)s')\n"
c02c3bcad99b add some comment to POSIX platform moin command how to fix when it does not find MoinMoin module
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 757
diff changeset
156 "from %(package)s.script.%(module)s import run\n"
c02c3bcad99b add some comment to POSIX platform moin command how to fix when it does not find MoinMoin module
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 757
diff changeset
157 "run()\n"
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
158 % script_vars)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
159 finally:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
160 file.close()
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
161 os.chmod(outfile, 0755)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
162
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
163
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
164 class build_scripts_moin(build_scripts_create):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
165 package_name = 'MoinMoin'
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
166
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
167
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
168 def scriptname(path):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
169 """ Helper for building a list of script names from a list of
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
170 module files.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
171 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
172 script = os.path.splitext(os.path.basename(path))[0]
1180
c1c0d7f6f2b4 remove string module usage, some other cosmetic changes
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1179
diff changeset
173 script = script.replace('_', '-')
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
174 if sys.platform == "win32":
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
175 script = script + ".bat"
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
176 return script
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
177
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
178 # build list of scripts from their implementation modules
1866
0194beaf511e reduce reduce, filter and map usage
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1832
diff changeset
179 moin_scripts = [scriptname(fn) for fn in glob.glob('MoinMoin/script/[!_]*.py')]
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
180
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
181
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
182 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
183 ### Call setup()
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
184 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
185
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
186 setup_args = {
3439
b9879146620d fix some usages of underlay.tar.bz2 to use underlay.tar, use 'moin' for setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3434
diff changeset
187 'name': "moin",
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
188 'version': release,
3276
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
189 'description': "MoinMoin %s is an easy to use, full-featured and extensible wiki software package" % (release, ),
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
190 'author': "Juergen Hermann et al.",
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
191 'author_email': "moin-user@lists.sourceforge.net",
3434
d82ad8caaf1f setup.py: use own server for download, remove unused settings
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3276
diff changeset
192 # maintainer(_email) not active because distutils/register can't handle author and maintainer at once
d82ad8caaf1f setup.py: use own server for download, remove unused settings
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3276
diff changeset
193 'download_url': 'http://static.moinmo.in/files/moin-%s.tar.gz' % (release, ),
3115
cd6cfc715261 replace wikiwikiweb.de by moinmo.in, replace contact Juergen Hermann by Thomas Waldmann, cleanup wikiconfig (ported from 1.6)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3090
diff changeset
194 'url': "http://moinmo.in/",
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
195 'license': "GNU GPL",
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
196 'long_description': """
3276
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
197 MoinMoin is an easy to use, full-featured and extensible wiki software
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
198 package written in Python. It can fulfill a wide range of roles, such as
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
199 a personal notes organizer deployed on a laptop or home web server,
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
200 a company knowledge base deployed on an intranet, or an Internet server
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
201 open to individuals sharing the same interests, goals or projects.""",
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
202 'classifiers': """Development Status :: 5 - Production/Stable
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
203 Environment :: No Input/Output (Daemon)
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
204 Environment :: Web Environment
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
205 Environment :: Win32 (MS Windows)
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
206 Intended Audience :: Customer Service
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
207 Intended Audience :: Developers
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
208 Intended Audience :: Education
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
209 Intended Audience :: End Users/Desktop
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
210 Intended Audience :: Financial and Insurance Industry
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
211 Intended Audience :: Healthcare Industry
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
212 Intended Audience :: Information Technology
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
213 Intended Audience :: Legal Industry
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
214 Intended Audience :: Manufacturing
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
215 Intended Audience :: Other Audience
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
216 Intended Audience :: Religion
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
217 Intended Audience :: Science/Research
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
218 Intended Audience :: System Administrators
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
219 Intended Audience :: Telecommunications Industry
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
220 License :: OSI Approved :: GNU General Public License (GPL)
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
221 Natural Language :: Chinese (Simplified)
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
222 Natural Language :: Chinese (Traditional)
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
223 Natural Language :: Danish
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
224 Natural Language :: Dutch
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
225 Natural Language :: English
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
226 Natural Language :: French
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
227 Natural Language :: German
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
228 Natural Language :: Hebrew
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
229 Natural Language :: Hungarian
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
230 Natural Language :: Italian
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
231 Natural Language :: Javanese
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
232 Natural Language :: Korean
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
233 Natural Language :: Norwegian
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
234 Natural Language :: Russian
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
235 Natural Language :: Serbian
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
236 Natural Language :: Spanish
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
237 Natural Language :: Vietnamese
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
238 Operating System :: MacOS :: MacOS X
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
239 Operating System :: Microsoft :: Windows
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
240 Operating System :: Microsoft :: Windows :: Windows 95/98/2000
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
241 Operating System :: Microsoft :: Windows :: Windows NT/2000
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
242 Operating System :: OS Independent
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
243 Operating System :: POSIX
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
244 Operating System :: POSIX :: BSD :: FreeBSD
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
245 Operating System :: POSIX :: Linux
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
246 Operating System :: Unix
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
247 Programming Language :: Python
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
248 Topic :: Communications :: Conferencing
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
249 Topic :: Internet :: WWW/HTTP :: Dynamic Content
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
250 Topic :: Office/Business :: Groupware
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
251 Topic :: Text Processing :: Markup""".splitlines(),
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
252
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
253 'packages': [
3537
b232964fe38a add jabberbot package to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3439
diff changeset
254 'jabberbot',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
255 'MoinMoin',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
256 'MoinMoin.action',
878
d825de2173d5 add comment to GUI converter, add missing packages to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 825
diff changeset
257 'MoinMoin.auth',
1060
4b02826f6408 add MoinMoin.config to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 933
diff changeset
258 'MoinMoin.config',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
259 'MoinMoin.converter',
2598
b5efc2a7ba04 fixed: MoinMoin.events not installed via setup.py
Florian Krupicka <florian.krupicka@googlemail.com>
parents: 2286
diff changeset
260 'MoinMoin.events',
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
261 'MoinMoin.filter',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
262 'MoinMoin.formatter',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
263 'MoinMoin.i18n',
686
f2debe9be4e0 more i18n cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 685
diff changeset
264 'MoinMoin.i18n.tools',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
265 'MoinMoin.logfile',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
266 'MoinMoin.macro',
878
d825de2173d5 add comment to GUI converter, add missing packages to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 825
diff changeset
267 'MoinMoin.mail',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
268 'MoinMoin.parser',
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
269 'MoinMoin.script',
501
069acf15d7b3 moin account {check,create,disable} script commands
Thomas Waldmann <tw@waldmann-edv.de>
parents: 499
diff changeset
270 'MoinMoin.script.account',
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
271 'MoinMoin.script.cli',
554
e5e529840fcf fixed Makefile, setup.py, comments
Thomas Waldmann <tw@waldmann-edv.de>
parents: 507
diff changeset
272 'MoinMoin.script.export',
e5e529840fcf fixed Makefile, setup.py, comments
Thomas Waldmann <tw@waldmann-edv.de>
parents: 507
diff changeset
273 'MoinMoin.script.import',
807
dc31818ae861 add xapian indexer script
Franz Pletz <fpletz AT franz-pletz DOT org>
parents: 804
diff changeset
274 'MoinMoin.script.index',
503
1c46c48ca67e moin maint cleanpage
Thomas Waldmann <tw@waldmann-edv.de>
parents: 501
diff changeset
275 'MoinMoin.script.maint',
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
276 'MoinMoin.script.migration',
498
fa788cd35485 temp fix for setup.py (old script stuff)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 497
diff changeset
277 'MoinMoin.script.old',
499
a65a53daed80 add old migration scripts
Thomas Waldmann <tw@waldmann-edv.de>
parents: 498
diff changeset
278 'MoinMoin.script.old.migration',
498
fa788cd35485 temp fix for setup.py (old script stuff)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 497
diff changeset
279 'MoinMoin.script.old.xmlrpc-tools',
3025
ccf6d7ffb310 standalone server integrated into 'moin' script command (moin server standalone --help), thanks to Forrest Voight
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2598
diff changeset
280 'MoinMoin.script.server',
1185
7fa381254061 add script.xmlrpc to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1180
diff changeset
281 'MoinMoin.script.xmlrpc',
1156
7fd2894837e0 add search module to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1060
diff changeset
282 'MoinMoin.search',
746
0d3e9b79dde3 moved SecurityPolicy stuff to security/*
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 686
diff changeset
283 'MoinMoin.security',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
284 'MoinMoin.stats',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
285 'MoinMoin.support',
4328
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
286 'MoinMoin.support.flup',
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
287 'MoinMoin.support.flup.client',
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
288 'MoinMoin.support.flup.server',
4414
b542720564fc add pygments package to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4328
diff changeset
289 'MoinMoin.support.pygments',
4431
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
290 'MoinMoin.support.pygments.filters',
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
291 'MoinMoin.support.pygments.formatters',
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
292 'MoinMoin.support.pygments.lexers',
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
293 'MoinMoin.support.pygments.styles',
4328
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
294 'MoinMoin.support.werkzeug',
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
295 'MoinMoin.support.werkzeug.contrib',
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
296 'MoinMoin.support.werkzeug.debug',
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
297 'MoinMoin.support.wsgiref',
804
ede8da99ce86 Remove last traces of lupy
Franz Pletz <fpletz AT franz-pletz DOT org>
parents: 686
diff changeset
298 'MoinMoin.support.xapwrap',
1472
ff126e63a52e install MoinMoin.support.parsedatetime
Franz Pletz <fpletz AT franz-pletz DOT org>
parents: 1185
diff changeset
299 'MoinMoin.support.parsedatetime',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
300 'MoinMoin.theme',
3130
b92ac8cfbf44 added missing packages to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
301 'MoinMoin.userform',
b92ac8cfbf44 added missing packages to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
302 'MoinMoin.userprefs',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
303 'MoinMoin.util',
4328
7eb12d1f0856 updated setup.py/MANIFEST.in, removed packages not there any more, added new packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3537
diff changeset
304 'MoinMoin.web',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
305 'MoinMoin.widget',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
306 'MoinMoin.wikixml',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
307 'MoinMoin.xmlrpc',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
308
3090
93ae352854be add _tests/ directories to the dist archive, but do not install them using setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
309 # all other _tests are missing here, either we have all or nothing:
93ae352854be add _tests/ directories to the dist archive, but do not install them using setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3025
diff changeset
310 #'MoinMoin._tests',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
311 ],
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
312
4584
0dbfbe73371d remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4431
diff changeset
313 'package_dir': {'MoinMoin.i18n': 'MoinMoin/i18n', },
0dbfbe73371d remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4431
diff changeset
314 'package_data': {'MoinMoin.i18n': ['README', 'Makefile', 'MoinMoin.pot', 'POTFILES.in',
0dbfbe73371d remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4431
diff changeset
315 '*.po',
0dbfbe73371d remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4431
diff changeset
316 'tools/*',
0dbfbe73371d remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4431
diff changeset
317 'jabberbot/*',
0dbfbe73371d remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4431
diff changeset
318 ], },
757
38914e43f0dd setup.py: include i18n/mo/*.mo and some other files
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
319
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
320 # Override certain command classes with our own ones
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
321 'cmdclass': {
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
322 'build_scripts': build_scripts_moin,
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
323 },
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
324
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
325 'scripts': moin_scripts,
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
326
933
a03c030a62c5 make setup.py work with python2.3 AND copy *.po to package dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 901
diff changeset
327 # This copies the contents of wiki dir under sys.prefix/share/moin
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
328 # Do not put files that should not be installed in the wiki dir, or
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
329 # clean the dir before you make the distribution tarball.
4584
0dbfbe73371d remove setup.py hacks for py2.3 compatibility, 2.4 can solve it cleaner
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4431
diff changeset
330 'data_files': makeDataFiles('share/moin', 'wiki')
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
331 }
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
332
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
333 if hasattr(distutils.dist.DistributionMetadata, 'get_keywords'):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
334 setup_args['keywords'] = "wiki web"
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
335
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
336 if hasattr(distutils.dist.DistributionMetadata, 'get_platforms'):
3276
9344e281c89e Merge data from pypi and the setup.py file, can be used to push useful data to pypi now. Just do "python setup.py register". Same as 315fe11cde6d on the 1.6 branch.
Alexander Schremmer <alex AT alexanderweb DOT de>
parents: 3130
diff changeset
337 setup_args['platforms'] = "any"
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
338
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
339
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
340 try:
1869
88326c62ae53 remove apply() usage
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1866
diff changeset
341 setup(**setup_args)
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
342 except distutils.errors.DistutilsPlatformError, ex:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
343 print
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
344 print str(ex)
933
a03c030a62c5 make setup.py work with python2.3 AND copy *.po to package dir
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 901
diff changeset
345
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
346 print """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
347 POSSIBLE CAUSE
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
348
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
349 "distutils" often needs developer support installed to work
2286
01f05e74aa9c Big PEP8 and whitespace cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1869
diff changeset
350 correctly, which is usually located in a separate package
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
351 called "python%d.%d-dev(el)".
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
352
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
353 Please contact the system administrator to have it installed.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
354 """ % sys.version_info[:2]
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
355 sys.exit(1)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
356