-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
cx_Freeze should be installable from git revision #2660
Comments
The pre-built files work if you do not have the MS VC C compiler and use |
Thanks for prompt response :)
Ok, so I gather that editable install is the only way to use these prebuild binaries.
Yes, I believe this is what |
Do you mean
pip install, buids and install the package, bypassing the creation of a wheel. But, back to the issue, I made a patch, can you test it? You can test with cloning it and also, can use: |
Oh gee, I was meant to write
I'm not an expert on Python packaging (worked as a developer for several years but rarely had to package something) but my
Of course I admit the possibility that this is totally misleading.
Tested it and it appears to solve the issue - |
I forgot the PEP517, so the wheel has been in the intermediate phase for about 2 or 3 years. |
Describe the bug
It appears that cx_Freeze cannot be correctly installed on Windows from git revision. The installation works correctly when using wheel from PyPI, but this cannot be guaranteed to be immutable. Also, it appears that all necessary files are already pre-built in the repository, so using a wheel doesn't have to be a hard requirement.
This issue is similar to #2392, but that's a bit convoluted thread with no clear answers. Eventually, it seems the OP there managed to resolve the issue, but also wasn't attempting an installation from git revision, so their issues were likely different.
To Reproduce
On a Windows system, clone the repository or download and unpack the ZIP archive that GitHub automatically creates for every commit. Mine was https://codeload.github.com/marcelotduarte/cx_Freeze/zip/a2474eab285634ff59f3768a506e6b13ae77715b.zip
Navigate to cloned/unpacked directory and execute
python install -m .
orpython install -m .[dev]
. Then, check thesite-packages/cx_Freeze/bases
(the exact location differs based on Python installation settings) - at most, it should contain__pycache__
and__init__.py
, whereas some .exe files should also be present.Expected behavior
site-packages/cx_Freeze/bases
should have at least the same set of .exe files as when installing from pre-built wheel package.Desktop:
Windows 10 x86_64, cx_Freeze version 7.2.4, Python 3.12
The text was updated successfully, but these errors were encountered: