Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # help4py2exe.py -- work in progress
- '''
- If MSVCP90.dll is missing... install the Microsoft Visual C++ 2008 Redistributable Package
- '''
- from distutils.core import setup
- import FileDialog
- import sys, os
- sys.path.append("C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/redist/x86/Microsoft.VC90.CRT")
- sys.argv.append('py2exe')
- import py2exe
- #includes = ['numpy', 'scipy']
- __showConsole=0
- __MSVCP90=1
- __Tkinter=1
- __PIL=1
- setup(
- options={
- 'py2exe' : {
- 'bundle_files' : 1,
- 'compressed' : True,
- 'unbuffered' : False,
- 'dll_excludes' : [
- ('','MSVCP90.dll')[__MSVCP90],
- ],
- 'includes' : [
- ('','Tkinter')[__Tkinter],
- ('','PIL')[__PIL],
- 'Tkconstants',
- 'struct',
- ],
- 'optimize' : 2,
- 'dist_dir' : 'foo',
- 'dll_excludes' : [
- 'tcl85.dll',
- 'tk85.dll',
- ],
- 'packages' : [
- 'FileDialog',
- 'dateutil',
- ],
- },
- },
- windows=[{
- 'script' : 'hello_world.'+('.pyw','.pyc')[__showConsole],
- 'icon_resources' : [(1, 'hello_world.ico')],
- }],
- zipfile=None,
- name='hello world',
- version='2000.12 version',
- url='https://github(.)com/author/hello_world',
- license='MIT',
- author='firstname lastname',
- author_email='author@gmail(.)com',
- description='Prints "Hello World".',
- keywords=['gui', 'executable'],
- classifiers=[
- 'License :: OSI Approved :: MIT License',
- 'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: 3.6',
- 'Programming Language :: Python :: 3.7',
- 'Operating System :: Microsoft :: Windows',
- 'Operating System :: POSIX :: Linux',
- ]
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement