I compiled a script on Windows 7 32bit using python 3.4.1 and the latest py2exe from PyPI. When I copy it or run it on a system that has Windows Defender enabled, WD flags the script as malware (Win32/Zwangi).
I was able to reproduce this using a minimal script (print("hello world")) and the following setup.py:
~~~~~~
from distutils.core import setup
import os
import py2exe
setup(
windows=[{"script":"test.py", "dest_base":"test"},],
options= {
"py2exe" : {
"compressed":1,
"optimize":2,
"bundle_files":3
}
},
zipfile = None
)
~~~~~~~
I've attached a zipfile of the dist folder being generated.
At my company we're having the same issue, using latest py2exe 0.9.2.0 and Python 3.4.1 32bit.
However, files created on another machine that has 64bit Python don't cause detection.
We still need 32-bit binaries though, so this is still an issue.