Hi, I'm having trouble compiling my console script on windows 7 on python 2.6
Here is my setup script:
from distutils.core import setup
import py2exe,sys,os

sys
.argv.append('py2exe')

try:
        setup
(
   options
= {'py2exe': {'bundle_files': 1}},
   console
=['my_console_script.py'],
   zipfile
= None,
   
)
except Exception, e:
 
print e


this will error with this message:
> running py2exe
> *** searching for required modules ***
> *** parsing results ***
> *** finding dlls needed *** Traceback (most recent call last):   File
> "C:\scripts\download_ghost_recon\setup.py",
> line 26, in <module>
>     zipfile = None,   File "C:\Python26\lib\distutils\core.py",
> line 162, in setup
>     raise SystemExit, error SystemExit: error: MSVCR80.dll: No
> such file or directory



I did a search on my computer for this file, here are the locations where it is found:
C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.762_none_10b2f55f9bffb8f8
C
:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_d08d7da0442a985d
C
:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5



My goal is to create a single executable to run my program, no other dlls or files to distribute along with it.
I couldn't find an answer to this problem on your wiki or on the internet...
However, I did find this wiki page about including dlls:
http://www.py2exe.org/index.cgi/OverridingCriteraForIncludingDlls


So I then tried this code, but it also didn't work:
from distutils.core import setup
import py2exe,sys,os

origIsSystemDLL
= py2exe.build_exe.isSystemDLL
def isSystemDLL(pathname):
       
if os.path.basename(pathname).lower() in ("msvcp71.dll", "dwmapi.dll"):
               
return 0
       
return origIsSystemDLL(pathname)
py2exe
.build_exe.isSystemDLL = isSystemDLL

sys
.argv.append('py2exe')

try:
        setup
(
            options
= {'py2exe': {'bundle_files': 1}},
            console
=['my_console_script.py'],
            zipfile
= None,
           
)
except Exception, e:
   
print e








Any help on successfully compiling my script would be appreciated! :) Thank you.