Changeset 780:1687ac1948d0 in hatta-dev for setup.py
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r765 r780 34 34 ('share/locale/sv/LC_MESSAGES', ['locale/sv/LC_MESSAGES/hatta.mo']), 35 35 ('share/icons/hicolor/scalable', ['resources/hatta.svg']), 36 ('share/icons/hicolor/64x64', ['resources/hatta.png']), 36 ('share/icons/hicolor/64x64', ['resources/hatta.png', 37 'resources/error.png']), 37 38 ('share/applications', ['resources/hatta.desktop']), 38 39 ('share/doc/hatta/examples', [ … … 45 46 requires=['werkzeug (>=0.3)', 'mercurial (>=1.0)', 46 47 'pybonjour (>=1.1.1)'], 47 setup_requires =['pybonjour'],48 setup_requires=['pybonjour'], 48 49 classifiers=[ 49 50 'License :: OSI Approved :: GNU General Public License (GPL)', … … 58 59 'Environment :: Web Environment', 59 60 ], 60 options ={61 options={ 61 62 'py2exe': { 62 'includes': ['sip'],63 'includes': ['sip'], 63 64 'packages': ['werkzeug', 'dbhash', 'encodings', 64 65 'Image', 'pygments'], 65 'excludes': ['_ssl', 'tcl', 'tkinter', 'Tkconstants' 66 ,'Tkinter'],66 'excludes': ['_ssl', 'tcl', 'tkinter', 'Tkconstants', 67 'Tkinter'], 67 68 'dll_excludes': ['tcl84.dll', 'tk84.dll'], 68 69 "compressed": 1, 69 70 "optimize": 2, 70 "bundle_files": 1,71 "bundle_files": 1, 71 72 }, 72 73 'py2app': { … … 121 122 if 'debug' in file: 122 123 print 'removing', file 123 os.remove(os.path.join(root, file))124 os.remove(os.path.join(root, file)) 124 125 125 126 # And run macdeployqt to copy plugins and build a dmg … … 136 137 elif sys.platform == 'win32': 137 138 ### Windows installer ### 138 # Hack to make py2exe import win32com139 # http://www.py2exe.org/index.cgi/WinShell139 # Hack to make py2exe import win32com 140 # http://www.py2exe.org/index.cgi/WinShell 140 141 # ModuleFinder can't handle runtime changes to __path__, but win32com uses them 141 142 import time … … 238 239 from datetime import datetime 239 240 version = version[:-3] + '.' + datetime.now().strftime('%Y%m%d%H%M') 240 241 241 242 # create the Installer, using the files py2exe has created. 242 243 script = InnoScript("hatta", lib_dir, dist_dir, … … 251 252 # Output subdirectory. 252 253 # class BuildInstaller 253 254 config['zipfile'] = None254 255 config['zipfile'] = None 255 256 config['cmdclass'] = {"py2exe": BuildInstaller} 256 257 config['windows'] = [{ 257 'script': 'hatta_qticon.py',258 'script': 'hatta_qticon.py', 258 259 'icon_resources': [(1, "resources/hatta.ico")], 259 260 }] 260 261 261 262 # Adding MS runtime C libraries 262 263 if sys.version.startswith('2.6'): … … 287 288 return 0 288 289 return origIsSystemDLL(pathname) 289 py2exe.build_exe.isSystemDLL = isSystemDLL 290 py2exe.build_exe.isSystemDLL = isSystemDLL 290 291 291 292 else: # Other UNIX-like 292 293 config['scripts'] = ['hatta_qticon.py', 'hatta_gtkicon.py'] 293 294 294 if __name__ =='__main__':295 if __name__ == '__main__': 295 296 setup(**config) 296 297 try:
Note: See TracChangeset
for help on using the changeset viewer.
