Closed noahblumADS closed 2 years ago
In previous versions of cx_Freeze, including 6.9, there were no errors when including pre-release segments in the version number, as they would build without issue.
I believe that in 6.9 the version is ignored in the final executable. Can you check the properties of it?
I'll check if stamp can be non-number.
Hi,
I believe that in 6.9 the version is ignored in the final executable. Can you check the properties of it?
I believe this is what you're looking for? In which case it is not applied.
If not, please let me know. I'm not too familiar with executable properties, so I wasn't too certain where to look.
This is the correct screen.
You can test the development release:
pip uninstall -y cx_Freeze
pip install -i https://marcelotduarte.github.io/packages/ cx_Freeze --pre
When I run that second command, I get the following error:
Requirement already satisfied: cx-logging>=3.0 in c:\users\███████\documents\virtual environments\███████ (3.9)\lib\site-packages (from cx_Freeze) (3.0)
Requirement already satisfied: lief>=0.11.5 in c:\users\███████\documents\virtual environments\███████ (3.9)\lib\site-packages (from cx_Freeze) (0.11.5)
Requirement already satisfied: importlib-metadata>=4.8.3 in c:\users\███████\documents\virtual environments\███████ (3.9)\lib\site-packages (from cx_Freeze) (4.11.2)
ERROR: Could not find a version that satisfies the requirement packaging (from cx-freeze) (from versions: none)
ERROR: No matching distribution found for packaging
Any suggestions?
The correct command is:
pip install --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze --pre --no-cache
@noahblumADS Do you have success?
@marcelotduarte i got a similar issue as @noahblumADS and i tried the version you got at marcelotduarte.github.io and it seems to fixed the issue.
thanks for fixing it ❤️
cx_Freeze 6.11 has just been released. pip install --upgrade cx_Freeze
Describe the bug When attempting to freeze an application with
python setup.py build_exe
a version number that has pre-release segments, i.e. "1.0.0b1", "0.10.0rc4", cx_Freeze v6.10 fails to build, as the pre-release segment fails to convert from a string to an int.To Reproduce
setup.py
set your version number to any number including pre-release segments, i.e., "1.0.0b1", "3.2a6", "0.10.0rc4"setup.py
file, and using cx_Freeze v6.10 runpython setup.py build_exe
.Expected behavior In previous versions of cx_Freeze, including 6.9, there were no errors when including pre-release segments in the version number, as they would build without issue.
Desktop
Additional context
Console Log Attached is my console log, I've removed the name of my virtual environment, application, and username. They are irrelevant to the issue.
Attached is my
setup.py
again with identifying information removed. In this case, the__version__
imported is "v0.10.0b1"