Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update pep8

  • Loading branch information...
commit b60fd4d619c56f55113563ef8e984c0f2d7fe796 1 parent 5fd0d2e
@terryh authored
Showing with 50 additions and 46 deletions.
  1. +50 −46 setup.py
View
96 setup.py
@@ -10,11 +10,11 @@
from autotrader import __version__
data_files = []
-data_files += glob(join('Microsoft.VC90.CRT','*'))
-data_files += glob(join('function','*'))
-data_files += glob(join('quote','*'))
-data_files += glob(join('config','*'))
-data_files += glob(join('locale','*'))
+data_files += glob(join('Microsoft.VC90.CRT', '*'))
+data_files += glob(join('function', '*'))
+data_files += glob(join('quote', '*'))
+data_files += glob(join('config', '*'))
+data_files += glob(join('locale', '*'))
includes = []
packages = []
@@ -26,8 +26,8 @@
packages.append('pytz')
packages.append('talib')
packages.append('wx')
-packages.append('enable') # FIXME enable.images not able to package on freeze
-packages.append('pyface') # FIXME pyface.images not able to package on freeze
+packages.append('enable') # FIXME enable.images not able to package on freeze
+packages.append('pyface') # FIXME pyface.images not able to package on freeze
packages.append('traits')
packages.append('traitsui')
@@ -37,10 +37,10 @@
zip_files = []
zoneinfo_path = "C:\\Python27\Lib\site-packages\pytz\zoneinfo"
-should_have_in_zip =[
- "C:\\Python27\Lib\site-packages\pytz\zoneinfo",
- "C:\\Python27\Lib\site-packages\enable\images",
- "C:\\Python27\Lib\site-packages\pyface\images",
+should_have_in_zip = [
+ "C:\\Python27\Lib\site-packages\pytz\zoneinfo",
+ "C:\\Python27\Lib\site-packages\enable\images",
+ "C:\\Python27\Lib\site-packages\pyface\images",
]
for walk_path in should_have_in_zip:
@@ -60,44 +60,48 @@
"include_files": data_files,
"zip_includes": zip_files,
"excludes": [
- 'Tkinter',
- 'IPython',
- #'pyreadline',
- #'_ssl',
- #'locale',
- #'calendar'
- 'Tkconstants',
- 'Tkinter',
- 'tcl',
- 'tk',
- '_imagingtk',
- 'curses',
- 'PIL._imagingtk',
- 'ImageTk',
- 'PIL.ImageTk',
- 'FixTk',
- 'bsddb',
- 'email',
- 'pywin.debugger',
- 'pywin.debugger.dbgcon',
- 'matplotlib'
+ 'Tkinter',
+ 'IPython',
+ #'pyreadline',
+ #'_ssl',
+ #'locale',
+ #'calendar'
+ 'Tkconstants',
+ 'Tkinter',
+ 'tcl',
+ 'tk',
+ '_imagingtk',
+ 'curses',
+ 'PIL._imagingtk',
+ 'ImageTk',
+ 'PIL.ImageTk',
+ 'FixTk',
+ 'bsddb',
+ 'email',
+ 'pywin.debugger',
+ 'pywin.debugger.dbgcon',
+ 'matplotlib'
],
"includes": includes
}
executables = [
- #cx_Freeze.Executable("autotrader.py", icon="icons/trade.ico", base = base),
- cx_Freeze.Executable("autotrader.py", icon="icons/trade.ico", base = "Win32GUI"),
- cx_Freeze.Executable("quote/DDE.py", icon="icons/dde.ico", base = None),
- cx_Freeze.Executable("quote/quoteworker.py", icon="icons/quoteworker.ico", base = None),
- cx_Freeze.Executable("trader.py", icon="icons/trader.ico", base = None),
- cx_Freeze.Executable("tools/taifex.py", icon="icons/compile.ico", base = None),
- cx_Freeze.Executable("pricechart.py", base = "Win32GUI"),
- ]
+ #cx_Freeze.Executable("autotrader.py", icon="icons/trade.ico", base = base),
+ cx_Freeze.Executable(
+ "autotrader.py", icon="icons/trade.ico", base="Win32GUI"),
+ cx_Freeze.Executable(
+ "quote/DDE.py", icon="icons/dde.ico", base=None),
+ cx_Freeze.Executable("quote/quoteworker.py",
+ icon="icons/quoteworker.ico", base=None),
+ cx_Freeze.Executable(
+ "trader.py", icon="icons/trader.ico", base=None),
+ cx_Freeze.Executable(
+ "tools/taifex.py", icon="icons/compile.ico", base=None),
+ cx_Freeze.Executable("pricechart.py", base="Win32GUI"),
+]
cx_Freeze.setup(
- name = "autotrader",
- version = __version__,
- description = "AutoTrader",
- executables = executables,
- options = dict(build_exe = buildOptions))
-
+ name="autotrader",
+ version=__version__,
+ description="AutoTrader",
+ executables=executables,
+ options=dict(build_exe=buildOptions))
Please sign in to comment.
Something went wrong with that request. Please try again.