Py2exe: ignore archive is ignored

I'm probably making a stupid mistake somewhere, but I can't seem to find it. Here is my setup.py:

import py2exe
from distutils.core import setup

setup(windows=['Gui.py'],
    data_files = [('Drivers', ['Drivers/chromedriver.exe',
                               'Drivers/IEDriverServer.exe']
                 )],
    options={
        "py2exe":{
            "skip_archive": True,
            "unbuffered": True,
            "optimize": 2
        }
})

      

The command I am running is:

python setup.py py2exe

All my files are in setup.py (no subdirectories)

I use:

  • python 3.4.2
  • py2exe 0.9.2.2

The error I'm getting is that in / dist archive.zip is still present and not divided into subdirectories.

Any help would be appreciated

+3


source to share


1 answer


Your data_files definition doesn't look right, doesn't it:

data_files = [('Drivers', ['Drivers/chromedriver.exe',
                   'Drivers/IEDriverServer.exe'])], 

      



i.e. a ',' after 'Drivers'

Is the error you getting an exception? or....?

0


source







All Articles