Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude python3.dll #2116

Open
yasirroni opened this issue Oct 27, 2023 · 2 comments
Open

Exclude python3.dll #2116

yasirroni opened this issue Oct 27, 2023 · 2 comments

Comments

@yasirroni
Copy link

My use case is to create a patch where user can copy paste old files with latest patch. In this use case, I'm using exhaustive exclude for faster creation, such as

cxfreeze -c GUI/GUI.py --target-dir dist --exclude-modules currency_converter,fastapi,jinja2,numpy,openpyxl,pandas,pydantic,scipy,sympy,xlrd,xlsxwriter,xlwings,asyncio,concurrent,ctypes,currency_converter,distutils,email,html,http,lib2to3,logging,multiprocessing,pydoc_data,pywin32_system32,tcl8,tcl8.6,test,tk8.6,tkinter,unittest,urllib,xml,xmlrpc

It can further optimized with excluding python3.dll and python3.8.dll. Later when I know that I upgrade dependency and or python, I can delete them from exclude list.

This make patch distribution smaller and faster creation.

@marcelotduarte
Copy link
Owner

I'm not sure, but it should work using the name or fullpath with bin-excludes.

@yasirroni
Copy link
Author

I'm not sure, but it should work using the name or fullpath with bin-excludes.

That is not possible, based on this example,

import time

print("Hello World!")

time.sleep(5)

run using

cxfreeze -c cx_freeze/hello_world.py --target-dir cx_freeze/dist  --bin-excludes python3.dll

I've been tryting to find any related code inside this repository but can't find any relevant code yet, so I can't help to make a PR.

This message also appears, right after we run,

creating directory ...\cx_freeze\dist
copying ...\Programs\Python\Python38\python3.dll -> ...\cx_freeze\dist\python3.dll
copying ...\Programs\Python\Python38\python38.dll -> ...\cx_freeze\dist\python38.dll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants