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

Duplicates of dll-files (python, VCRUNTIME140) #1304

Closed
FreeHarry opened this issue Dec 3, 2021 · 3 comments · Fixed by #1336
Closed

Duplicates of dll-files (python, VCRUNTIME140) #1304

FreeHarry opened this issue Dec 3, 2021 · 3 comments · Fixed by #1336

Comments

@FreeHarry
Copy link
Contributor

Since long a time I have the problem to have duplicate dll-files, comparing the application dir to the lib subdir.

If set include_msvcr=False, then only python#.dll is duplicated.

If set include_msvcr=True, python#.dll and VCRUNTIME140.dll are duplicated.

I can remove the dll's from the lib subdir and everything works well. Would it be possible to exclude these dll's in the lib subdir automatically in cx_freeze?

I use cx_freeze 6.8.4 on Windows 10.

@marcelotduarte
Copy link
Owner

I see that this can happen. I have a solution I'm testing. I saw, for example, that when copying _asyncio.pyd, it copies python39.dll to the lib. The duplicated vcruntime140.dll in the lib is on purpose.
Can you show me when python3x.dll is copied to lib?
When giving the build, post for me the line "copying" from python to lib and the previous line that usually indicates where detected. Just to find out which modules might be doing this.

@FreeHarry
Copy link
Contributor Author

FreeHarry commented Dec 29, 2021

These are the "copying" lines you wanted ...

copying C:\Users\user\.pyvirtualenvs\general\lib\site-packages\win32\_win32sysloader.pyd -> \\VBoxSvr\Host-Dropbox\Programming\python\projects\opencadfile\build\lib\_win32sysloader.pyd
copying C:\Users\user\AppData\Local\Programs\Python\Python39\python39.dll -> \\VBoxSvr\Host-Dropbox\Programming\python\projects\opencadfile\build\lib\python39.dll

It seems if I import one of the modules of the package pywin32 it results in this duplicated python39.dll file.

@marcelotduarte
Copy link
Owner

cx_Freeze 6.10 has just been released.

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

Successfully merging a pull request may close this issue.

2 participants