# Path: py2app/util.py
# def os_path_islink(path):
# def os_readlink(path):
# def os_path_isdir(path):
# def find_converter(source):
# def copy_resource(source, destination, dry_run=0):
# def copy_file(source, destination, dry_run=0):
# def get_zip_data(path_to_zip, path_in_zip):
# def path_to_zip(path):
# def get_mtime(path, mustExist=True):
# def newer(source, target):
# def find_version(fn):
# def in_system_path(filename):
# def fsencoding(s, encoding=sys.getfilesystemencoding()):
# def make_exec(path):
# def makedirs(path):
# def mergecopy(src, dest):
# def mergetree(src, dst, condition=None, copyfn=mergecopy):
# def move(src, dst):
# def copy2(src, dst):
# def fancy_split(s, sep=","):
#     def __init__(self, iterable=None):
#     def __repr__(self):
#     def add(self, fname):
#     def remove(self, fname):
#     def __contains__(self, fname):
#     def __getitem__(self, index):
#     def __len__(self):
#     def copy(self):
# def make_loader(fn):
# def byte_compile(py_files, optimize=0, force=0,
#                  target_dir=None, verbose=1, dry_run=0,
#                  direct=None):
# def skipscm(ofn):
# def skipfunc(junk=(), junk_exts=(), chain=()):
#     def _skipfunc(fn):
# def get_magic(platform=sys.platform):
# def iter_platform_files(path, is_platform_file=macholib.util.is_platform_file):
# def strip_files(files, dry_run=0, verbose=0):
# def copy_tree(src, dst,
#         preserve_mode=1,
#         preserve_times=1,
#         preserve_symlinks=0,
#         update=0,
#         verbose=0,
#         dry_run=0,
#         condition=None):
# def walk_files(path):
# def find_app(app):
# def momc(src, dst):
# def mapc(src, dst):
# class FileSet(object):
# LOADER = """
# def __load():
#     import imp, os, sys
#     ext = %r
#     for path in sys.path:
#         if not path.endswith('lib-dynload'):
#             continue
#         ext = os.path.join(path, ext)
#         if os.path.exists(ext):
#             #print "py2app extension module", __name__, "->", ext
#             mod = imp.load_dynamic(__name__, ext)
#             #mod.frozen = 1
#             break
#         else:
#             raise ImportError, repr(ext) + " not found"
#     else:
#         raise ImportError, "lib-dynload not found"
# __load()
# del __load
# """
# SCMDIRS = ['CVS', '.svn']
# JUNK = ['.DS_Store', '.gdb_history', 'build', 'dist'] + SCMDIRS
# JUNK_EXTS = ['.pbxuser', '.pyc', '.pyo', '.swp']
# MOMC = '/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc'
#     MOMC = '/Developer/Library/Xcode/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc'
#     MOMC = '/Developer/usr/bin/momc'
# MAPC = '/Developer/Library/Xcode/Plug-ins/XDMappingModel.xdplugin/Contents/Resources/mapc'
#     MAPC = '/Developer/usr/bin/mapc'


import os
import sys
import setuptools
from py2app.util import skipjunk

_bdist_mpkg = setuptools.Distribution().get_command_class('bdist_mpkg')
class bdist_mpkg(_bdist_mpkg):
    def initialize_options(self):

# Path: py2app/util.py
# def os_path_islink(path):
# def os_readlink(path):
# def os_path_isdir(path):
# def find_converter(source):
# def copy_resource(source, destination, dry_run=0):
# def copy_file(source, destination, dry_run=0):
# def get_zip_data(path_to_zip, path_in_zip):
# def path_to_zip(path):
# def get_mtime(path, mustExist=True):
# def newer(source, target):
# def find_version(fn):
# def in_system_path(filename):
# def fsencoding(s, encoding=sys.getfilesystemencoding()):
# def make_exec(path):
# def makedirs(path):
# def mergecopy(src, dest):
# def mergetree(src, dst, condition=None, copyfn=mergecopy):
# def move(src, dst):
# def copy2(src, dst):
# def fancy_split(s, sep=","):
#     def __init__(self, iterable=None):
#     def __repr__(self):
#     def add(self, fname):
#     def remove(self, fname):
#     def __contains__(self, fname):
#     def __getitem__(self, index):
#     def __len__(self):
#     def copy(self):
# def make_loader(fn):
# def byte_compile(py_files, optimize=0, force=0,
#                  target_dir=None, verbose=1, dry_run=0,
#                  direct=None):
# def skipscm(ofn):
# def skipfunc(junk=(), junk_exts=(), chain=()):
#     def _skipfunc(fn):
# def get_magic(platform=sys.platform):
# def iter_platform_files(path, is_platform_file=macholib.util.is_platform_file):
# def strip_files(files, dry_run=0, verbose=0):
# def copy_tree(src, dst,
#         preserve_mode=1,
#         preserve_times=1,
#         preserve_symlinks=0,
#         update=0,
#         verbose=0,
#         dry_run=0,
#         condition=None):
# def walk_files(path):
# def find_app(app):
# def momc(src, dst):
# def mapc(src, dst):
# class FileSet(object):
# LOADER = """
# def __load():
#     import imp, os, sys
#     ext = %r
#     for path in sys.path:
#         if not path.endswith('lib-dynload'):
#             continue
#         ext = os.path.join(path, ext)
#         if os.path.exists(ext):
#             #print "py2app extension module", __name__, "->", ext
#             mod = imp.load_dynamic(__name__, ext)
#             #mod.frozen = 1
#             break
#         else:
#             raise ImportError, repr(ext) + " not found"
#     else:
#         raise ImportError, "lib-dynload not found"
# __load()
# del __load
# """
# SCMDIRS = ['CVS', '.svn']
# JUNK = ['.DS_Store', '.gdb_history', 'build', 'dist'] + SCMDIRS
# JUNK_EXTS = ['.pbxuser', '.pyc', '.pyo', '.swp']
# MOMC = '/Library/Application Support/Apple/Developer Tools/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc'
#     MOMC = '/Developer/Library/Xcode/Plug-ins/XDCoreDataModel.xdplugin/Contents/Resources/momc'
#     MOMC = '/Developer/usr/bin/momc'
# MAPC = '/Developer/Library/Xcode/Plug-ins/XDMappingModel.xdplugin/Contents/Resources/mapc'
#     MAPC = '/Developer/usr/bin/mapc'


# Path: setup-lib/py2app_mpkg.py
import os
import sys
import setuptools
from py2app.util import skipjunk


_bdist_mpkg = setuptools.Distribution().get_command_class('bdist_mpkg')
class bdist_mpkg(_bdist_mpkg):
    def initialize_options(self):

        _bdist_mpkg.initialize_options(self)