From: <th...@us...> - 2013-06-30 18:03:10
|
Revision: 735 http://sourceforge.net/p/py2exe/svn/735 Author: theller Date: 2013-06-30 18:03:08 +0000 (Sun, 30 Jun 2013) Log Message: ----------- Add options for easier debugging. Modified Paths: -------------- trunk/py2exe/setup.py Modified: trunk/py2exe/setup.py =================================================================== --- trunk/py2exe/setup.py 2013-06-30 18:02:34 UTC (rev 734) +++ trunk/py2exe/setup.py 2013-06-30 18:03:08 UTC (rev 735) @@ -373,6 +373,14 @@ macros.append(("USE_BINARY_SEARCH", '1')) +extra_compile_args = [] +extra_link_args = [] + +if 0: + # enable this to debug a release build + extra_compile_args.append("/Z7") + extra_link_args.append("/DEBUG") + ##macros.append(("AS_PY2EXE_BUILTIN", "1")) # for runtime linking python.dll in _memimporter.c depends = ["source/import-tab.c", "source/import-tab.h"] @@ -383,6 +391,8 @@ "source/actctx.c"], depends=depends, define_macros=macros + [("STANDALONE", "1")], + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, ) run = Interpreter("py2exe.run", @@ -395,6 +405,8 @@ ], depends=depends, define_macros=macros, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, ) run_w = Interpreter("py2exe.run_w", @@ -408,6 +420,8 @@ libraries=["user32"], depends=depends, define_macros=macros, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, ) run_dll = Interpreter("py2exe.run_dll", @@ -427,6 +441,8 @@ target_desc = "shared_library", depends=depends, define_macros=macros, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, ) run_ctypes_dll = Interpreter("py2exe.run_ctypes_dll", @@ -446,6 +462,8 @@ target_desc = "shared_library", depends=depends, define_macros=macros, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, ) run_isapi = Interpreter("py2exe.run_isapi", @@ -465,12 +483,12 @@ target_desc = "shared_library", depends=depends, define_macros=macros, + extra_compile_args=extra_compile_args, + extra_link_args=extra_link_args, ) interpreters = [run, run_w, run_dll, run_ctypes_dll, run_isapi] -options = {"bdist_wininst": {"install_script": "py2exe_postinstall.py"}} - setup(name="py2exe", version=__version__, description="Build standalone executables for Windows", @@ -502,7 +520,6 @@ packages=['py2exe', 'py2exe.resources', ], - options = options, ) # Local Variables: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |