annotate setup.py @ 5147:e25e3a6042a8

setup.py: fix indentation that led to wrong exitcode 1 (even if there was no fault)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 18 Sep 2009 18:52:40 +0200
parents 9ceece3ef751
children ae076c4adfda
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
4613
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
91 def make_filelist(dir, strip_prefix=''):
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
92 """ package_data is pretty stupid: if the globs that can be given there
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
93 match a directory, then setup.py install will fall over that later,
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
94 because it expects only files.
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
95 Use make_filelist(dir, strip) to create a list of all FILES below dir,
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
96 stripping off the strip_prefix at the left side.
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
97 """
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
98 found = []
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
99 def _visit((found, strip), dirname, names):
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
100 files = []
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
101 for name in names:
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
102 path = os.path.join(dirname, name)
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
103 if os.path.isfile(path):
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
104 if path.startswith(strip):
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
105 path = path[len(strip):]
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
106 files.append(path)
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
107 found.extend(files)
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
108
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
109 os.path.walk(dir, _visit, (found, strip_prefix))
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
110 return found
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 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
113 ### Build script files
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
114 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
115
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
116 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
117 """ 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
118 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
119
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
120 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
121 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
122 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
123
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
124 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
125 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
126
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
127 <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
128
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
129 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
130 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
131 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
132 package_name = None
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
133
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
134 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
135 """ 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
136 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
137 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
138 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
139 " 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
140
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
141 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
142 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
143 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
144
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
145 #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
146 # 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
147 # continue
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
148
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
149 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
150 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
151 continue
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
152
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
153 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
154 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
155 script_vars = {
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
156 '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
157 '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
158 'module': module,
1832
b180f047d918 comments only: cleaned up TODO, XXX, ...
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1472
diff changeset
159 '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
160 }
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
161
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
162 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
163 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
164
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
165 try:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
166 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
167 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
168 '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
169 '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
170 % script_vars)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
171 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
172 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
173 "#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
174 "#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
175 "#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
176 "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
177 "run()\n"
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
178 % script_vars)
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
179 finally:
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
180 file.close()
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
181 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
182
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
183
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
184 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
185 package_name = 'MoinMoin'
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
186
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
187
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
188 def scriptname(path):
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
189 """ 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
190 module files.
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
191 """
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
192 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
193 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
194 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
195 script = script + ".bat"
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
196 return script
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
197
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
198 # 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
199 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
200
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
201
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
202 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
203 ### Call setup()
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
204 #############################################################################
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
205
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
206 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
207 'name': "moin",
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
208 '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
209 '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
210 '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
211 '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
212 # 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
213 '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
214 '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
215 'license': "GNU GPL",
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
216 '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
217 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
218 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
219 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
220 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
221 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
222 '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
223 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
224 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
225 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
226 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
227 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
228 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
229 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
230 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
231 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
232 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
233 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
234 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
235 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
236 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
237 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
238 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
239 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
240 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
241 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
242 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
243 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
244 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
245 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
246 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
247 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
248 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
249 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
250 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
251 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
252 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
253 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
254 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
255 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
256 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
257 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
258 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
259 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
260 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
261 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
262 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
263 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
264 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
265 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
266 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
267 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
268 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
269 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
270 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
271 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
272
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
273 'packages': [
3537
b232964fe38a add jabberbot package to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3439
diff changeset
274 'jabberbot',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
275 'MoinMoin',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
276 '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
277 'MoinMoin.auth',
1060
4b02826f6408 add MoinMoin.config to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 933
diff changeset
278 'MoinMoin.config',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
279 'MoinMoin.converter',
4895
3440ba2a89b2 Groups2009: MoinMoin.datastruct and MoinMoin.datastruct.backends were added to a list of packages in setup.py
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4616
diff changeset
280 'MoinMoin.datastruct',
3440ba2a89b2 Groups2009: MoinMoin.datastruct and MoinMoin.datastruct.backends were added to a list of packages in setup.py
Dmitrijs Milajevs <dimazest@gmail.com>
parents: 4616
diff changeset
281 'MoinMoin.datastruct.backends',
2598
b5efc2a7ba04 fixed: MoinMoin.events not installed via setup.py
Florian Krupicka <florian.krupicka@googlemail.com>
parents: 2286
diff changeset
282 'MoinMoin.events',
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
283 'MoinMoin.filter',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
284 'MoinMoin.formatter',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
285 'MoinMoin.i18n',
686
f2debe9be4e0 more i18n cleanup
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 685
diff changeset
286 '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
287 'MoinMoin.logfile',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
288 '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
289 'MoinMoin.mail',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
290 'MoinMoin.parser',
497
ef41e35985dc new scripting method, using 'moin' command. new style migration scripts.
Thomas Waldmann <tw@waldmann-edv.de>
parents: 369
diff changeset
291 'MoinMoin.script',
501
069acf15d7b3 moin account {check,create,disable} script commands
Thomas Waldmann <tw@waldmann-edv.de>
parents: 499
diff changeset
292 '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
293 'MoinMoin.script.cli',
554
e5e529840fcf fixed Makefile, setup.py, comments
Thomas Waldmann <tw@waldmann-edv.de>
parents: 507
diff changeset
294 'MoinMoin.script.export',
e5e529840fcf fixed Makefile, setup.py, comments
Thomas Waldmann <tw@waldmann-edv.de>
parents: 507
diff changeset
295 'MoinMoin.script.import',
807
dc31818ae861 add xapian indexer script
Franz Pletz <fpletz AT franz-pletz DOT org>
parents: 804
diff changeset
296 'MoinMoin.script.index',
503
1c46c48ca67e moin maint cleanpage
Thomas Waldmann <tw@waldmann-edv.de>
parents: 501
diff changeset
297 '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
298 'MoinMoin.script.migration',
498
fa788cd35485 temp fix for setup.py (old script stuff)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 497
diff changeset
299 'MoinMoin.script.old',
499
a65a53daed80 add old migration scripts
Thomas Waldmann <tw@waldmann-edv.de>
parents: 498
diff changeset
300 'MoinMoin.script.old.migration',
498
fa788cd35485 temp fix for setup.py (old script stuff)
Thomas Waldmann <tw@waldmann-edv.de>
parents: 497
diff changeset
301 '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
302 'MoinMoin.script.server',
1185
7fa381254061 add script.xmlrpc to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1180
diff changeset
303 'MoinMoin.script.xmlrpc',
1156
7fd2894837e0 add search module to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 1060
diff changeset
304 'MoinMoin.search',
5076
9ceece3ef751 setup.py: added missing MoinMoin.search.* packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 5074
diff changeset
305 'MoinMoin.search.Xapian',
9ceece3ef751 setup.py: added missing MoinMoin.search.* packages
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 5074
diff changeset
306 'MoinMoin.search.queryparser',
746
0d3e9b79dde3 moved SecurityPolicy stuff to security/*
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 686
diff changeset
307 'MoinMoin.security',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
308 'MoinMoin.stats',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
309 '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
310 '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
311 '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
312 'MoinMoin.support.flup.server',
4414
b542720564fc add pygments package to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4328
diff changeset
313 'MoinMoin.support.pygments',
4431
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
314 'MoinMoin.support.pygments.filters',
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
315 'MoinMoin.support.pygments.formatters',
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
316 'MoinMoin.support.pygments.lexers',
436048b821a5 setup: fixed missing pygments subdirs
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 4414
diff changeset
317 '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
318 '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
319 '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
320 'MoinMoin.support.werkzeug.debug',
5074
4e18a63ff298 setup.py: replace xapwrap by xappy
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4895
diff changeset
321 'MoinMoin.support.xappy',
1472
ff126e63a52e install MoinMoin.support.parsedatetime
Franz Pletz <fpletz AT franz-pletz DOT org>
parents: 1185
diff changeset
322 '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
323 'MoinMoin.theme',
3130
b92ac8cfbf44 added missing packages to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
324 'MoinMoin.userform',
b92ac8cfbf44 added missing packages to setup.py
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 3115
diff changeset
325 'MoinMoin.userprefs',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
326 '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
327 'MoinMoin.web',
4613
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
328 'MoinMoin.web.static',
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
329 'MoinMoin.widget',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
330 'MoinMoin.wikixml',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
331 'MoinMoin.xmlrpc',
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
332
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
333 # 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
334 #'MoinMoin._tests',
0
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
4613
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
337 'package_dir': {'MoinMoin.i18n': 'MoinMoin/i18n',
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
338 'MoinMoin.web.static': 'MoinMoin/web/static',
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
339 },
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
340 '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
341 '*.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
342 '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
343 'jabberbot/*',
4613
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
344 ],
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
345 'MoinMoin.web.static': make_filelist('MoinMoin/web/static/htdocs',
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
346 strip_prefix='MoinMoin/web/static/'),
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
347 },
757
38914e43f0dd setup.py: include i18n/mo/*.mo and some other files
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 746
diff changeset
348
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
349 # 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
350 'cmdclass': {
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
351 '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
352 },
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
353
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
354 'scripts': moin_scripts,
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
355
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
356 # 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
357 # 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
358 # 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
359 '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
360 }
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
361
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
362 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
363 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
364
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
365 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
366 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
367
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
368
4613
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
369 if __name__ == '__main__':
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
370 try:
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
371 setup(**setup_args)
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
372 except distutils.errors.DistutilsPlatformError, ex:
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
373 print
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
374 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
375
4613
e7f1cf9eeb96 Static file serving built-in (see details below).
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 4584
diff changeset
376 print """
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
377 POSSIBLE CAUSE
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
378
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
379 "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
380 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
381 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
382
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
383 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
384 """ % sys.version_info[:2]
5147
e25e3a6042a8 setup.py: fix indentation that led to wrong exitcode 1 (even if there was no fault)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 5076
diff changeset
385 sys.exit(1)
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
386