Advertisement
Guest User

Untitled

a guest
Apr 30th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.15 KB | None | 0 0
  1. """
  2. This is a setup.py script generated by py2applet
  3.  
  4. Usage:
  5.    python setup.py py2app
  6. """
  7. import os
  8. from distutils.core import setup
  9. #from distutils.core import Extension
  10. from setuptools import setup, Extension
  11.  
  12. APP = ['linkchecker-gui']
  13. DATA_FILES = ['linkchecker']
  14. OPTIONS = {'argv_emulation': True}
  15.  
  16. # global include dirs
  17. include_dirs = []
  18. # global macros
  19. define_macros = []
  20. # compiler args
  21. extra_compile_args = []
  22. # library directories
  23. library_dirs = []
  24. # libraries
  25. libraries = []
  26. # scripts
  27. scripts = ['linkchecker', 'linkchecker-gui']
  28.  
  29. setup(
  30.     name="LINNK",
  31.     app=APP,
  32.     data_files=DATA_FILES,
  33.     setup_requires=['py2app',
  34.                     'dnspython',
  35.                     'sip'],
  36.     #options={'py2app': OPTIONS},
  37.     options = {'py2app': dict(
  38.     includes=['sip', 'PyQt4',
  39.           'PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtSql'],
  40.     excludes=['doctest', 'unittest', 'optcomplete', 'Tkinter',
  41.         'PyQt4.QtDesigner', 'PyQt4.QtNetwork', 'PyQt4.QtOpenGL',
  42.         'PyQt4.QtScript', 'PyQt4.QtTest', 'PyQt4.QtWebKit', 'PyQt4.QtXml',
  43.         'PyQt4.phonon'],
  44.     iconfile='doc/html/favicon.icns',
  45.     plist={'CFBundleIconFile': 'favicon.icns'},
  46.     argv_emulation=True,
  47.     site_packages=True,
  48.     )
  49.                },
  50.     ext_modules = [
  51.         Extension('linkcheck.HtmlParser.htmlsax',
  52.             sources = [
  53.                 'linkcheck/HtmlParser/htmllex.c',
  54.                 'linkcheck/HtmlParser/htmlparse.c',
  55.                 'linkcheck/HtmlParser/s_util.c',
  56.             ],
  57.             extra_compile_args = extra_compile_args,
  58.             library_dirs = library_dirs,
  59.             libraries = libraries,
  60.             define_macros = define_macros + [('YY_NO_INPUT', None)],
  61.             include_dirs = include_dirs + [os.path.normpath("linkcheck/HtmlParser")],
  62.         ),
  63.         Extension("linkcheck.network._network",
  64.             sources = ["linkcheck/network/_network.c"],
  65.             extra_compile_args = extra_compile_args,
  66.             library_dirs = library_dirs,
  67.             libraries = libraries,
  68.             define_macros = define_macros,
  69.             include_dirs = include_dirs
  70.         ),
  71.     ],
  72. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement