1 How do I install mxTidy with Zope / Plone?
3 Here are the steps. Be sure to use the same python as your Zope / Plone uses
4 for setting up mxTidy correctly!
6 1) Download these packages:
8 http://www.egenix.com/files/python/egenix-mx-base-2.0.5.tar.gz
9 http://www.egenix.com/files/python/egenix-mx-experimental-0.8.0.tar.gz
13 tar xfvz egenix-mx-base-2.0.5.tar.gz
14 tar xfvz egenix-mx-experimental-0.8.0.tar.gz
16 3) Change to egenix-mx-base-2.0.5
18 python setup.py install
20 4) Change to egenix-mx-experimental-0.8.0
22 python setup.py install
24 Maybe you'll get an error like "Can't compile etc.pp."...
26 If so, copy the "patched" file below (it just skips
27 the "buggy" number-module which isn't needed for tidy) to
28 egenix-mx-experimental-0.8.0/mxEXPERIMENTAL.py and try again.
30 5) Restart your Zope / Plone to take changes effect!
32 -----------------------------------------------------
33 patched mxEXPERIMENTAL.py for easier mxTidy-Setup
34 -----------------------------------------------------
36 #!/usr/local/bin/python2.0
38 """ Configuration for the eGenix mx EXPERIMENTAL distribution.
40 Copyright (c) 1997-2000, Marc-Andre Lemburg; mailto:mal(ät)lemburg.com
41 Copyright (c) 2000-2003, eGenix.com Software GmbH;
42 mailto:info(ät)egenix.com
43 See the documentation for further information on copyrights,
44 or contact the author. All Rights Reserved.
46 from mxSetup import mx_Extension
57 name = "egenix-mx-experimental"
62 description = "eGenix mx-Extensions - EXPERIMENTAL package"
63 long_description = """\
64 The eGenix mx Extension Series are a collection of
65 Python extensions written in ANSI C and Python
66 which provide a large spectrum of useful additions
67 to everyday Python programming.
69 This package includes experimental subpackages of the
70 series. Please understand that the software in these
71 packages is still in alpha state and does not meet the
72 quality standards of production quality software.
74 This software is brought to you by eGenix.com. The included
75 subpackages are either covered by the eGenix.com Public
76 License or the eGenix.com Commercial License and/or other
77 licenses. Please check the subpackage documentation for
78 details or contact eGenix.com for more license information.
81 "Copyright (c) 2000-2003, eGenix.com Software GmbH, All Rights Reserved"
83 author = "Marc-Andre Lemburg"
84 author_email = "mal(ät)egenix.com"
85 url = "http://www.egenix.com/files/python/eGenix-mx-Extensions.html"
114 # libtidy.a needed by mxTidy
117 glob.glob(os.path.join('mx','Tidy','mxTidy','libtidy','*.c')),
119 [os.path.join('mx','Tidy','mxTidy','libtidy')],
121 [('COMPILING_TIDY', 1)],
132 mx_Extension('mx.Tidy.mxTidy.mxTidy',
133 ['mx/Tidy/mxTidy/mxTidy.c'],
134 include_dirs=['mx/Tidy/mxTidy',
135 'mx/Tidy/mxTidy/libtidy'],
136 libraries=['libtidy'],
137 library_dirs=['mx/Tidy/mxTidy/libtidy']),
140 mx_Extension('mx.URL.mxURL.mxURL',
141 ['mx/URL/mxURL/mxURL.c'],
142 include_dirs=['mx/URL/mxURL']),
145 mx_Extension('mx.UID.mxUID.mxUID',
146 ['mx/UID/mxUID/mxUID.c'],
147 include_dirs=['mx/UID/mxUID']),
157 'mx/Tidy/Doc/mxTidy.html',
158 'mx/Tidy/Doc/mxLicense.html',
159 'mx/Tidy/Doc/Overview.html',
160 'mx/Tidy/Doc/pending.html',
161 'mx/Tidy/Doc/release-notes.html',
162 'mx/Tidy/Doc/tidy.gif',
166 'mx/Tidy/mxTidy/mxTidy.h',
167 'mx/Tidy/mxTidy/mxh.h',
168 'mx/Tidy/mxTidy/input.html',
171 'mx/URL/Doc/mxURL.html',
172 'mx/URL/Doc/mxLicense.html',
176 'mx/URL/mxURL/mxURL.h',
177 'mx/URL/mxURL/mxh.h',
180 'mx/UID/Doc/mxUID.html',
181 'mx/UID/Doc/mxLicense.html',
185 'mx/UID/mxUID/mxUID.h',
186 'mx/UID/mxUID/mxh.h',