root/branches/mbutscher/work/setup.py

Revision 157 (by mbutscher, 10/26/08 09:11:59)

branches/mbutscher/work:

1.9beta19

* Option to set whole wiki read-only
* Wiki-bound option to auto-show log window in

addition to global option
* "Collapse whole tree" in context menu of tree items
* Slightly different ordering of tree children with
"tree_position" or "priority" attribute
* Support for cascading four CSS files from
different places on export (application base,
admin base, user-bound and wiki-bound). For
external preview there can be three more to set it
differently.
* More logical syntax for textblocks (submenu title
is not need to be indented anymore like the rest
of submenu)
* Renaming the page which is root node of tree now
also changes the root node to the new page name.
* More compatible with newer wxPython versions on
Windows (thanks to Serge).

* Bug fixed: Prioritizing more specific global
settings for tree node state (icon/bold/color)
over less specific ones did not work
* Bug fixed: Diverse problems with IE preview
* Bug fixed: Using templates when "templates_head"
is set to "auto" (or not set at all) prevented
"Use link title if present" from working
* Bug fixed: Doc structure didn't update anymore
* Bug fixed: On inserting a textblock, selection was
not replaced and "undo" didn't behave well
* Bug fixed: "priority" attribute did not influence
"importance"
* Bug fixed: Indentation containing real tab
characters was not copied unmodified to next line
on auto-indent

# setup.py
from distutils.core import setup
import os
from glob import glob
import py2exe
from py2exe.build_exe import Target


wikidpad = Target(
    # used for the versioninfo resource
    version = '1.9',
    name = 'WikidPad',
    copyright = '(C) 2005-2008 Jason Horman, Michael Butscher, Gerhard Reitmayr',
    description = 'Single user wiki notepad',
    comments='',

    # what to build
    script = 'WikidPad.py',
    icon_resources = [(0, 'icons/pwiki.ico')]
)


excludes = ["win32api", "win32con", "win32pipe"]

setup(
    options = {"py2exe": {"compressed": 1,
                          "optimize": 2,
                          "ascii": 1,
                          "excludes": excludes}},

    name='WikidPad',
    version = '1.9beta',
    author = 'Michael Butscher',
    author_email = 'mbutscher@gmx.de',
    url = 'http://www.mbutscher.de/software.html',
    ## scripts=['WikidPad.py'],
    windows = [wikidpad],
    package_dir = {'': 'lib'},
    packages = ['pwiki', 'pwiki.wikidata', 'pwiki.wikidata.compact_sqlite',
              'pwiki.wikidata.original_gadfly',
              'pwiki.wikidata.original_sqlite', 'pwiki.timeView',
              'pwiki.rtlibRepl'],
    # py_modules=['encodings.utf_8', 'encodings.latin_1'],
    data_files = [('icons', glob(os.path.join('icons', '*.*'))),
#                 ('lib', glob('sql_mar.*')),
          ('extensions', glob('extensions/*.*')),
          ('', ['sqlite3.dll', 'WikidPad.xrc', 'readme_Wic.txt', 'gadfly.zip',
              'langlist.txt', 'appbase.css'] + glob('WikidPad_*.po')),
          ('WikidPadHelp', glob(os.path.join('WikidPadHelpOG-static', '*.wiki'))),
          (os.path.join('WikidPadHelp', 'data'),
              glob(os.path.join('WikidPadHelpOG-static', 'data', '*.*'))),
          (os.path.join('WikidPadHelp', 'files'),
              glob(os.path.join('WikidPadHelpOG-static', 'files', '*.*'))),
          ('export', [])]
)
Note: See TracBrowser for help on using the browser.