Package Editra :: Module setup
[hide private]

Module setup

source code


Editra Setup Script

USAGE:

  1) Windows:
     - python setup.py py2exe

  2) MacOSX:
     - python setup.py py2app

  3) Boil an Egg
     - python setup.py bdist_egg

  4) Install as a python package
     - python setup.py install

@summary: Used for building the editra distribution files and installations


Author: Cody Precord <cprecord@editra.org>

Functions [hide private]
 
GenerateBinPackageFiles()
Generate the list of files needed for py2exe/py2app package files
source code
 
GenerateSrcPackageFiles()
Generate the list of files to include in a source package dist/install
source code
Variables [hide private]
  __svnid__ = "$Id: setup.py 59995 2009-04-03 14:43:45Z CJP $"
  __revision__ = "$Revision: 59995 $"
  __platform__ = os.sys.platform
  APP = ['src/Editra.py']
  AUTHOR = "Cody Precord"
  AUTHOR_EMAIL = "staff@editra.org"
  YEAR = 2008
  CLASSIFIERS = ['Development Status :: 3 - Alpha', 'Environment...
  DESCRIPTION = "Developer's Text Editor"
  LONG_DESCRIPT = r...
  ICON = {'Win': "pixmaps/editra.ico", 'WinDoc': "pixmaps/editra...
  INCLUDES = ['syntax.*', 'ed_log', 'shutil', 'subprocess', 'zip...
  LICENSE = "wxWindows"
  NAME = "Editra"
  URL = "http://editra.org"
  VERSION = '0.4.75'
  MANIFEST_TEMPLATE = ...
  RT_MANIFEST = 24
  PLIST = dict(CFBundleName= info.PROG_NAME, CFBundleIconFile= '...
  PY2APP_OPTS = dict(iconfile= ICON ['Mac'], argv_emulation= Tru...
  DATA_FILES = GenerateBinPackageFiles()
  DATA = GenerateSrcPackageFiles()
Variables Details [hide private]

CLASSIFIERS

Value:
['Development Status :: 3 - Alpha', 'Environment :: MacOS X', 'Environ\
ment :: Win32 (MS Windows)', 'Environment :: X11 Applications :: GTK',\
 'Intended Audience :: Developers', 'Intended Audience :: Information \
Technology', 'Intended Audience :: End Users/Desktop', 'License :: OSI\
 Approved', 'Natural Language :: English', 'Natural Language :: Chines\
e (Simplified)', 'Natural Language :: Chinese (Traditional)', 'Natural\
 Language :: Czech', 'Natural Language :: Dutch', 'Natural Language ::\
 French', 'Natural Language :: German', 'Natural Language :: Italian',\
...

LONG_DESCRIPT

Value:
r"""
========
Overview
========
Editra is a multi-platform text editor with an implementation that foc\
uses on
creating an easy to use interface and features that aid in code develo\
pment.
...

ICON

Value:
{'Win': "pixmaps/editra.ico", 'WinDoc': "pixmaps/editra_doc.ico", 'Mac\
': "pixmaps/Editra.icns"}

INCLUDES

Value:
['syntax.*', 'ed_log', 'shutil', 'subprocess', 'zipfile', 'pygments.*'\
, 'pygments.lexers.*', 'pygments.formatters.*', 'pygments.filters.*', \
'pygments.styles.*', 'ftplib']

MANIFEST_TEMPLATE

Value:
'''
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.\
0">
<assemblyIdentity
    version="5.0.0.0"
    processorArchitecture="x86"
    name="%(prog)s"
...

PLIST

Value:
dict(CFBundleName= info.PROG_NAME, CFBundleIconFile= 'Editra.icns', CF\
BundleShortVersionString= info.VERSION, CFBundleGetInfoString= info.PR\
OG_NAME+ " "+ info.VERSION, CFBundleExecutable= info.PROG_NAME, CFBund\
leIdentifier= "org.editra.%s" % info.PROG_NAME.title(), CFBundleDocume\
ntTypes= [dict(CFBundleTypeExtensions= synextreg.GetFileExtensions(), \
CFBundleTypeIconFile= 'editra_doc', CFBundleTypeRole= "Editor"),], CFB\
undleTypeMIMETypes= ['text/plain',], CFBundleDevelopmentRegion= 'Engli\
sh', NSHumanReadableCopyright= u"Copyright %s 2005-%d" %(AUTHOR, YEAR)\
...

PY2APP_OPTS

Value:
dict(iconfile= ICON ['Mac'], argv_emulation= True, optimize= True, inc\
ludes= INCLUDES, plist= PLIST)