You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.pyc files in base_library.zip contain references to their source files. This is similar to #5377.
Context information (for bug reports)
Output of pyinstaller --version: 4.2, 5.0.dev0
Version of Python: 3.8.1
Platform: Win10 En
Did you also try this on another platform? Does it work there?
Did not try on another platform
What I did:
Install Python 3.8.2 in 2 locations (e.g. C:\Python38 and C:\Python\Py38)
Create a virtual environment from one C:\Python38\python.exe -m venv .venv
Create an empty test.py file touch test.py
activate .venv
SET PYTHONHASHSEED=1
invoke pyinstaller --clean -y test.py
copy the output to another location
repeat steps 2-6 with the other install
compare base library of the 2 builds and observe the differences in the .pyc files
More:
The root cause seems to be that the mod.code is not having strip_paths_in_code invoked on it prior to writing it like is done in other areas of the code.
Strip paths from modules collected into base_library.zip, to enable
reproducible builds regardless of python's install location.
Fixespyinstaller#5563.
Description of the issue
.pyc files in base_library.zip contain references to their source files. This is similar to #5377.
Context information (for bug reports)
pyinstaller --version
:4.2
,5.0.dev0
Did not try on another platform
What I did:
C:\Python38\python.exe -m venv .venv
touch test.py
.venv
SET PYTHONHASHSEED=1
pyinstaller --clean -y test.py
More:
The root cause seems to be that the mod.code is not having strip_paths_in_code invoked on it prior to writing it like is done in other areas of the code.
pyinstaller/PyInstaller/depend/utils.py
Lines 92 to 105 in 8666376
The text was updated successfully, but these errors were encountered: