""" This is a setup.py script generated by py2applet See build.py for enclosing script and notes. Usage: python setup.py py2app """ from setuptools import setup APP = ['PyEdit.py'] # must match the source name DATA_FILES = [] # not used here # Generated by include-full-stdlib.py INCLUDES = ['abc', 'aifc', 'antigravity', 'argparse', 'ast', 'asynchat', 'asyncore', 'base64', 'bdb', 'binhex', 'bisect', 'bz2', 'calendar', 'cgi', 'cgitb', 'chunk', 'cmd', 'code', 'codecs', 'codeop', 'colorsys', 'compileall', 'configparser', 'contextlib', 'copy', 'copyreg', 'cProfile', 'crypt', 'csv', 'datetime', 'decimal', 'difflib', 'dis', 'doctest', 'dummy_threading', 'enum', 'filecmp', 'fileinput', 'fnmatch', 'formatter', 'fractions', 'ftplib', 'functools', 'genericpath', 'getopt', 'getpass', 'gettext', 'glob', 'gzip', 'hashlib', 'heapq', 'hmac', 'imaplib', 'imghdr', 'imp', 'inspect', 'io', 'ipaddress', 'keyword', 'linecache', 'locale', 'lzma', 'macpath', 'macurl2path', 'mailbox', 'mailcap', 'mimetypes', 'modulefinder', 'netrc', 'nntplib', 'ntpath', 'nturl2path', 'numbers', 'opcode', 'operator', 'optparse', 'os', 'pathlib', 'pdb', 'pickle', 'pickletools', 'pipes', 'pkgutil', 'platform', 'plistlib', 'poplib', 'posixpath', 'pprint', 'profile', 'pstats', 'pty', 'py_compile', 'pyclbr', 'pydoc', 'queue', 'quopri', 'random', 're', 'reprlib', 'rlcompleter', 'runpy', 'sched', 'selectors', 'shelve', 'shlex', 'shutil', 'signal', 'site', 'smtpd', 'smtplib', 'sndhdr', 'socket', 'socketserver', 'sre_compile', 'sre_constants', 'sre_parse', 'ssl', 'stat', 'statistics', 'string', 'stringprep', 'struct', 'subprocess', 'sunau', 'symbol', 'symtable', 'sysconfig', 'tabnanny', 'tarfile', 'telnetlib', 'tempfile', 'textwrap', 'this', 'threading', 'timeit', 'token', 'tokenize', 'trace', 'traceback', 'tracemalloc', 'tty', 'turtle', 'types', 'typing', 'uu', 'uuid', 'warnings', 'wave', 'weakref', 'webbrowser', 'xdrlib', 'zipapp', 'zipfile', 'asyncio', 'asyncio.base_events', 'asyncio.base_subprocess', 'asyncio.compat', 'asyncio.constants', 'asyncio.coroutines', 'asyncio.events', 'asyncio.futures', 'asyncio.locks', 'asyncio.log', 'asyncio.proactor_events', 'asyncio.protocols', 'asyncio.queues', 'asyncio.selector_events', 'asyncio.sslproto', 'asyncio.streams', 'asyncio.subprocess', 'asyncio.tasks', 'asyncio.test_utils', 'asyncio.transports', 'asyncio.unix_events', 'asyncio.windows_events', 'asyncio.windows_utils', 'collections', 'collections.abc', 'concurrent', 'concurrent.futures', 'concurrent.futures.process', 'concurrent.futures.thread', 'ctypes', 'ctypes.util', 'ctypes.wintypes', 'ctypes.macholib', 'ctypes.macholib.dyld', 'ctypes.macholib.dylib', 'ctypes.macholib.framework', 'curses', 'curses.ascii', 'curses.has_key', 'curses.panel', 'curses.textpad', 'dbm', 'dbm.dumb', 'dbm.gnu', 'dbm.ndbm', 'distutils', 'distutils.archive_util', 'distutils.bcppcompiler', 'distutils.ccompiler', 'distutils.cmd', 'distutils.config', 'distutils.core', 'distutils.cygwinccompiler', 'distutils.debug', 'distutils.dep_util', 'distutils.dir_util', 'distutils.dist', 'distutils.errors', 'distutils.extension', 'distutils.fancy_getopt', 'distutils.file_util', 'distutils.filelist', 'distutils.log', 'distutils.msvc9compiler', 'distutils.msvccompiler', 'distutils.spawn', 'distutils.sysconfig', 'distutils.text_file', 'distutils.unixccompiler', 'distutils.util', 'distutils.version', 'distutils.versionpredicate', 'distutils.command', 'distutils.command.bdist', 'distutils.command.bdist_dumb', 'distutils.command.bdist_msi', 'distutils.command.bdist_rpm', 'distutils.command.bdist_wininst', 'distutils.command.build', 'distutils.command.build_clib', 'distutils.command.build_ext', 'distutils.command.build_py', 'distutils.command.build_scripts', 'distutils.command.check', 'distutils.command.clean', 'distutils.command.config', 'distutils.command.install', 'distutils.command.install_data', 'distutils.command.install_egg_info', 'distutils.command.install_headers', 'distutils.command.install_lib', 'distutils.command.install_scripts', 'distutils.command.register', 'distutils.command.sdist', 'distutils.command.upload', 'email', 'email.base64mime', 'email.charset', 'email.contentmanager', 'email.encoders', 'email.errors', 'email.feedparser', 'email.generator', 'email.header', 'email.headerregistry', 'email.iterators', 'email.message', 'email.parser', 'email.policy', 'email.quoprimime', 'email.utils', 'email.mime', 'email.mime.application', 'email.mime.audio', 'email.mime.base', 'email.mime.image', 'email.mime.message', 'email.mime.multipart', 'email.mime.nonmultipart', 'email.mime.text', 'encodings', 'encodings.aliases', 'encodings.ascii', 'encodings.base64_codec', 'encodings.big5', 'encodings.big5hkscs', 'encodings.bz2_codec', 'encodings.charmap', 'encodings.cp037', 'encodings.cp1006', 'encodings.cp1026', 'encodings.cp1125', 'encodings.cp1140', 'encodings.cp1250', 'encodings.cp1251', 'encodings.cp1252', 'encodings.cp1253', 'encodings.cp1254', 'encodings.cp1255', 'encodings.cp1256', 'encodings.cp1257', 'encodings.cp1258', 'encodings.cp273', 'encodings.cp424', 'encodings.cp437', 'encodings.cp500', 'encodings.cp65001', 'encodings.cp720', 'encodings.cp737', 'encodings.cp775', 'encodings.cp850', 'encodings.cp852', 'encodings.cp855', 'encodings.cp856', 'encodings.cp857', 'encodings.cp858', 'encodings.cp860', 'encodings.cp861', 'encodings.cp862', 'encodings.cp863', 'encodings.cp864', 'encodings.cp865', 'encodings.cp866', 'encodings.cp869', 'encodings.cp874', 'encodings.cp875', 'encodings.cp932', 'encodings.cp949', 'encodings.cp950', 'encodings.euc_jis_2004', 'encodings.euc_jisx0213', 'encodings.euc_jp', 'encodings.euc_kr', 'encodings.gb18030', 'encodings.gb2312', 'encodings.gbk', 'encodings.hex_codec', 'encodings.hp_roman8', 'encodings.hz', 'encodings.idna', 'encodings.iso2022_jp', 'encodings.iso2022_jp_1', 'encodings.iso2022_jp_2', 'encodings.iso2022_jp_2004', 'encodings.iso2022_jp_3', 'encodings.iso2022_jp_ext', 'encodings.iso2022_kr', 'encodings.iso8859_1', 'encodings.iso8859_10', 'encodings.iso8859_11', 'encodings.iso8859_13', 'encodings.iso8859_14', 'encodings.iso8859_15', 'encodings.iso8859_16', 'encodings.iso8859_2', 'encodings.iso8859_3', 'encodings.iso8859_4', 'encodings.iso8859_5', 'encodings.iso8859_6', 'encodings.iso8859_7', 'encodings.iso8859_8', 'encodings.iso8859_9', 'encodings.johab', 'encodings.koi8_r', 'encodings.koi8_t', 'encodings.koi8_u', 'encodings.kz1048', 'encodings.latin_1', 'encodings.mac_arabic', 'encodings.mac_centeuro', 'encodings.mac_croatian', 'encodings.mac_cyrillic', 'encodings.mac_farsi', 'encodings.mac_greek', 'encodings.mac_iceland', 'encodings.mac_latin2', 'encodings.mac_roman', 'encodings.mac_romanian', 'encodings.mac_turkish', 'encodings.mbcs', 'encodings.palmos', 'encodings.ptcp154', 'encodings.punycode', 'encodings.quopri_codec', 'encodings.raw_unicode_escape', 'encodings.rot_13', 'encodings.shift_jis', 'encodings.shift_jis_2004', 'encodings.shift_jisx0213', 'encodings.tis_620', 'encodings.undefined', 'encodings.unicode_escape', 'encodings.unicode_internal', 'encodings.utf_16', 'encodings.utf_16_be', 'encodings.utf_16_le', 'encodings.utf_32', 'encodings.utf_32_be', 'encodings.utf_32_le', 'encodings.utf_7', 'encodings.utf_8', 'encodings.utf_8_sig', 'encodings.uu_codec', 'encodings.zlib_codec', 'html', 'html.entities', 'html.parser', 'http', 'http.client', 'http.cookiejar', 'http.cookies', 'http.server', 'importlib', 'importlib.abc', 'importlib.machinery', 'importlib.util', 'json', 'json.decoder', 'json.encoder', 'json.scanner', 'json.tool', 'array', 'audioop', 'binascii', 'cmath', 'fcntl', 'grp', 'math', 'mmap', 'nis', 'parser', 'pyexpat', 'readline', 'resource', 'select', 'syslog', 'termios', 'unicodedata', 'xxlimited', 'zlib', 'logging', 'logging.config', 'logging.handlers', 'multiprocessing', 'multiprocessing.connection', 'multiprocessing.context', 'multiprocessing.forkserver', 'multiprocessing.heap', 'multiprocessing.managers', 'multiprocessing.pool', 'multiprocessing.popen_fork', 'multiprocessing.popen_forkserver', 'multiprocessing.popen_spawn_posix', 'multiprocessing.popen_spawn_win32', 'multiprocessing.process', 'multiprocessing.queues', 'multiprocessing.reduction', 'multiprocessing.resource_sharer', 'multiprocessing.semaphore_tracker', 'multiprocessing.sharedctypes', 'multiprocessing.spawn', 'multiprocessing.synchronize', 'multiprocessing.util', 'multiprocessing.dummy', 'multiprocessing.dummy.connection', 'IN', 'pydoc_data', 'pydoc_data.topics', 'sqlite3', 'sqlite3.dbapi2', 'sqlite3.dump', 'tkinter', 'tkinter.colorchooser', 'tkinter.commondialog', 'tkinter.constants', 'tkinter.dialog', 'tkinter.dnd', 'tkinter.filedialog', 'tkinter.font', 'tkinter.messagebox', 'tkinter.scrolledtext', 'tkinter.simpledialog', 'tkinter.tix', 'tkinter.ttk', 'turtledemo', 'turtledemo.bytedesign', 'turtledemo.chaos', 'turtledemo.clock', 'turtledemo.colormixer', 'turtledemo.forest', 'turtledemo.fractalcurves', 'turtledemo.lindenmayer', 'turtledemo.minimal_hanoi', 'turtledemo.nim', 'turtledemo.paint', 'turtledemo.peace', 'turtledemo.penrose', 'turtledemo.planet_and_moon', 'turtledemo.round_dance', 'turtledemo.sorting_animate', 'turtledemo.tree', 'turtledemo.two_canvases', 'turtledemo.wikipedia', 'turtledemo.yinyang', 'unittest', 'unittest.case', 'unittest.loader', 'unittest.main', 'unittest.mock', 'unittest.result', 'unittest.runner', 'unittest.signals', 'unittest.suite', 'unittest.util', 'urllib', 'urllib.error', 'urllib.parse', 'urllib.request', 'urllib.response', 'urllib.robotparser', 'wsgiref', 'wsgiref.handlers', 'wsgiref.headers', 'wsgiref.simple_server', 'wsgiref.util', 'wsgiref.validate', 'xml', 'xml.dom', 'xml.dom.domreg', 'xml.dom.expatbuilder', 'xml.dom.minicompat', 'xml.dom.minidom', 'xml.dom.NodeFilter', 'xml.dom.pulldom', 'xml.dom.xmlbuilder', 'xml.etree', 'xml.etree.cElementTree', 'xml.etree.ElementInclude', 'xml.etree.ElementPath', 'xml.etree.ElementTree', 'xml.parsers', 'xml.parsers.expat', 'xml.sax', 'xml.sax.expatreader', 'xml.sax.handler', 'xml.sax.saxutils', 'xml.sax.xmlreader', 'xmlrpc', 'xmlrpc.client', 'xmlrpc.server'] OPTIONS = { # some options (icon, resources, excludes) come from the command-line too # see build.py for the command line that uses this file # ADDED: PyEdit runs arbitrary code 'includes': INCLUDES, # CHANGED: it's broken 'argv_emulation': False, # ADDED: don't edit Info.plist file (some plist entries are automatic) 'plist': { # bundle details 'CFBundleName': 'PyEdit', 'CFBundleDisplayName': 'PyEdit', 'CFBundleExecutable': 'PyEdit', # also automatic 'CFBundleGetInfoString': 'A Python/Tk Text Editor', # version/org details 'CFBundleVersion': '3.0.0', 'CFBundleShortVersionString': '3.0.0', 'CFBundleIdentifier': 'org.lutzware.PyEdit', # must be unique for Lanchpad 'NSHumanReadableCopyright': 'Copyright © 2000-2017, M. Lutz (learning-python.com)', # declare common associatable types 'CFBundleDocumentTypes': [ { # types for which PyEdit is suggested (can still be selected for others) 'CFBundleTypeExtensions': ['txt', 'html', # bread and butter text 'py', 'pyw', # ditto: python source code 'xml', 'ics', # xml docs, calendar data 'css', 'cgi', # web styles, some scripts 'c', 'cxx', 'h'], # c/c++ development: pysrc 'CFBundleTypeIconFile': 'pyedit.icns', 'CFBundleTypeName': 'Text or code file', 'CFBundleTypeRole': 'Editor' } ] } } setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], )