Member 13574900 Ответов: 0

Как сделать exe файл с py2exe без py кода в папке dist


Дорогой господин

Я новичок в python.Я хочу спросить кое-что о компиляции python py2exe.
Как сделать exe-файл с py2exe без py-кода в папке dist..


Спасибо в продвинутом классе

Что я уже пробовал:

from distutils.core import setup
import py2exe, sys, os

module_excludes = []

packages= [
    'reportlab',
    'reportlab.lib.units',
    'reportlab.lib.pagesizes',
    'reportlab.lib',
    'reportlab.pdfbase',
    'reportlab.pdfgen',
    'reportlab.platypus',
    'reportlab.pdfbase.ttfonts',
    'reportlab.pdfbase.pdfmetrics',
    'reportlab.lib.styles',
    'pyPdf','num2words',
]



setup(console=['menu_aacs.py'],data_files=(["thn_ke_nol_lbh_satu.py","list_tpc_novie.py","rls_date_novie.py","incstat.py","detinc.py","commprod.py","othinc_prod.py","tax10.py","alam.gif",
                                            "othinc_period_tax.py","othinc_prod.py","comm_ipbr.py","popuphelp.py","delitabelpdf.py","helpbasedonnpk.py",
                                            "helpbasedonnpol.py"]),      # change to windows=[...]
    options = {
        "py2exe": { "dll_excludes": ["MSVCP90.dll","api-ms-win-core-processthreads-l1-1-2.dll",
                                     "api-ms-win-core-sysinfo-l1-2-1.dll","api-ms-win-core-file-l2-1-0.dll",
                                     "api-ms-win-core-heap-l2-1-0.dll","api-ms-win-core-delayload-l1-1-1.dll",
                                     "api-ms-win-core-errorhandling-l1-1-1.dll","api-ms-win-core-profile-l1-1-0.dll",
                                     "api-ms-win-core-libraryloader-l1-2-0.dll","api-ms-win-core-string-obsolete-l1-1-0.dll",
                                     "api-ms-win-security-activedirectoryclient-l1-1-0.dll","Secur32.dll","shfolder.dll"],
                    "packages": packages}
                  }
  )

0 Ответов