Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This is a setup.py script generated by py2applet
- Usage:
- python setup.py py2app
- """
- import os
- from distutils.core import setup
- #from distutils.core import Extension
- from setuptools import setup, Extension
- APP = ['linkchecker-gui']
- DATA_FILES = ['linkchecker']
- OPTIONS = {'argv_emulation': True}
- # global include dirs
- include_dirs = []
- # global macros
- define_macros = []
- # compiler args
- extra_compile_args = []
- # library directories
- library_dirs = []
- # libraries
- libraries = []
- # scripts
- scripts = ['linkchecker', 'linkchecker-gui']
- setup(
- name="LINNK",
- app=APP,
- data_files=DATA_FILES,
- setup_requires=['py2app',
- 'dnspython',
- 'sip'],
- #options={'py2app': OPTIONS},
- options = {'py2app': dict(
- includes=['sip', 'PyQt4',
- 'PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtSql'],
- excludes=['doctest', 'unittest', 'optcomplete', 'Tkinter',
- 'PyQt4.QtDesigner', 'PyQt4.QtNetwork', 'PyQt4.QtOpenGL',
- 'PyQt4.QtScript', 'PyQt4.QtTest', 'PyQt4.QtWebKit', 'PyQt4.QtXml',
- 'PyQt4.phonon'],
- iconfile='doc/html/favicon.icns',
- plist={'CFBundleIconFile': 'favicon.icns'},
- argv_emulation=True,
- site_packages=True,
- )
- },
- ext_modules = [
- Extension('linkcheck.HtmlParser.htmlsax',
- sources = [
- 'linkcheck/HtmlParser/htmllex.c',
- 'linkcheck/HtmlParser/htmlparse.c',
- 'linkcheck/HtmlParser/s_util.c',
- ],
- extra_compile_args = extra_compile_args,
- library_dirs = library_dirs,
- libraries = libraries,
- define_macros = define_macros + [('YY_NO_INPUT', None)],
- include_dirs = include_dirs + [os.path.normpath("linkcheck/HtmlParser")],
- ),
- Extension("linkcheck.network._network",
- sources = ["linkcheck/network/_network.c"],
- extra_compile_args = extra_compile_args,
- library_dirs = library_dirs,
- libraries = libraries,
- define_macros = define_macros,
- include_dirs = include_dirs
- ),
- ],
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement