Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184263 - dev-python/cx_Freeze - set of utilities for freezing Python scripts into executables
Summary: dev-python/cx_Freeze - set of utilities for freezing Python scripts into exec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 2 votes (vote)
Assignee: Sergey Popov
URL: http://sourceforge.net/projects/cx-fr...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-07-05 06:58 UTC by Arne Babenhauserheide
Modified: 2012-12-18 07:45 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the ebuild (cx_freeze-4.0-r1.ebuild,615 bytes, text/plain)
2007-10-15 17:47 UTC, Nikola Petrov
Details
Ebuild for cx_Freeze 4.0.1 (cx_Freeze-4.0.1.tar.gz,43.81 KB, text/plain)
2008-12-17 03:08 UTC, Keith Harrison
Details
ebuild for cx_Freeze 4.0.1 (cx_Freeze-4.0.1.ebuild,1.19 KB, text/plain)
2008-12-17 03:12 UTC, Keith Harrison
Details
ebuild for cx_Freeze 4.1.2 (cx_Freeze-4.1.2.ebuild,1.19 KB, text/plain)
2010-01-27 22:03 UTC, Jean-Francis Roy
Details
updated cx_Freeze-4.1.2.ebuild (cx_Freeze-4.1.2.ebuild,1.76 KB, text/plain)
2010-06-30 20:16 UTC, Florian Berger
Details
cx_Freeze 4.2.1. ebuild (cx_Freeze-4.2.1.ebuild,1.77 KB, text/plain)
2010-12-13 18:46 UTC, Florian Berger
Details
cx_Freeze-4.3.1.ebuild (cx_Freeze-4.3.1.ebuild,646 bytes, text/plain)
2012-12-17 10:21 UTC, Sergey Popov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arne Babenhauserheide 2007-07-05 06:58:46 UTC
The Python IDE "eric" (which is in portage) runs best with cx_freeze installed, so I want to humbly request cx_freeze being added to portage. 

The applications are avaible from sourceforge: http://sourceforge.net/projects/cx-freeze/

The official site is http://www.cxtools.net/default.aspx?nav=cxfrlb

Information on beta versions can be found on python.net:  
http://starship.python.net/crew/atuining/cx_Freeze/index.html

The License is the Python Software Foundation License (PSF) (referenced on the sourceforge-page). 
License-file from main website: http://starship.python.net/crew/atuining/cx_Freeze/LICENSE.txt

Reproducible: Always
Comment 1 Nikola Petrov 2007-10-15 17:47:29 UTC
Created attachment 133553 [details]
the ebuild

Check that
Comment 2 Arne Babenhauserheide 2007-10-15 23:20:21 UTC
It works great for me (on amd64). 

Thanks a lot! 

- Arne

Besides: The more up to date page is http://cx-freeze.sf.net
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-16 05:31:28 UTC
Why's this resolved?
Comment 4 Arne Babenhauserheide 2007-10-16 14:41:08 UTC
Because the ebuilds works. 

I interpreted the description in the gentoo bug reporting guide as "Fixed means, the issue is resolved" and that as "There now is an ebuild which people can use", and I thought that meant, I should set it to fixed. I'm sorry if I misunderstood it. 

How long should an ebuild request be kept open? 
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-16 15:07:57 UTC
(In reply to comment #4)
> How long should an ebuild request be kept open? 

Until it's commited to the official tree or WONTFIXed by developers. Bugzilla is not a private ebuilds exchange, the purpose of the bug is to get the application to the official tree.
 
Comment 6 Arne Babenhauserheide 2007-10-17 07:29:13 UTC
> Until it's commited to the official tree or WONTFIXed by developers

That makes sense. Far more sense than my train of thought (people can find it here). 

Thank you for taking the time to write it. 
Comment 7 Arne Babenhauserheide 2008-01-21 15:18:12 UTC
To make this work well with eric4, it needs a symlink inside the path calles FreezePython, or eric4 needs to be changed to accept freeze. 

Which way would you advise? 
Comment 8 Keith Harrison 2008-12-17 03:08:26 UTC
Created attachment 175571 [details]
Ebuild for cx_Freeze 4.0.1

I tried updating the previously posted ebuild for 4.0.1 but it was broken and cxfeeeze would die and give the following error: "TypeError: compile() expected string without null bytes"

The problem was that distutils would call python_mod_optimize during pkg_postinst. This results all of the python files getting byte compiled into .pyc and .pyo files. cxfreeze does not like it if this happens to the files in the initscripts directory.

This is the first ebuild I have written from scratch, any constructive criticism is appreciated.
Comment 9 Keith Harrison 2008-12-17 03:12:40 UTC
Created attachment 175573 [details]
ebuild for cx_Freeze 4.0.1

I accidentally uploaded the source file instead of the ebuild on my last attempt. This is the ebuild.
Comment 10 Daniel Franke 2009-11-07 23:33:25 UTC
Any chance that this is going into the tree anytime soon?
Comment 11 Howard B. Golden 2009-11-10 18:56:25 UTC
Hi Python Gentoo Team. Please consider adopting this new package. Thanks!
Comment 12 Jean-Francis Roy 2010-01-27 22:03:26 UTC
Created attachment 217662 [details]
ebuild for cx_Freeze 4.1.2

Here is the ebuild for version 4.1.2. This is only the already provided ebuild that was renamed.
Comment 13 Florian Berger 2010-06-30 20:16:45 UTC
Created attachment 237077 [details]
updated cx_Freeze-4.1.2.ebuild

cx_Freeze-4.1.2.ebuild updated for new EAPI and multiple versions of Python.
Comment 14 Florian Berger 2010-06-30 20:21:57 UTC
The old cx_Freeze-4.1.2.ebuild produced warnings because of deprecated functions. I tried to port it to the new EAPI and make it work with multiple versions of Python.

What I couldn't figure out is how to convert the selective bytecode compilation to the new API, so this ebuild skips bytecode optimization altogether. This should be fixed.

I'd be glad if someone with more experience with the python eclass could glance over it.

Until then, please use with care.
Comment 15 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-03 04:24:49 UTC
(In reply to comment #13 and comment #14)

You can define PYTHON_MODNAME variable.
Comment 16 Florian Berger 2010-12-13 18:46:04 UTC
Created attachment 257043 [details]
cx_Freeze 4.2.1. ebuild

Update for cx_Freeze 4.2.1. Please test.
Comment 17 Florian Berger 2011-01-02 16:14:45 UTC
cx_Freeze 4.2.2 has been released on 16. Oct 2010.

Renaming the cx_Freeze-4.2.1.ebuild to cx_Freeze-4.2.2.ebuild works for me.
Comment 18 Florian Berger 2011-01-02 16:16:47 UTC
(In reply to comment #17)
> cx_Freeze 4.2.2 has been released on 16. Oct 2010.

Actually, it has been released on 23. Dec 2010. Merry Christmas. :)
Comment 19 Florian Berger 2011-06-21 16:20:24 UTC
cx_Freeze 4.2.3 has been released on 20 March 2011.

Renaming the above cx_Freeze-4.2.1.ebuild to cx_Freeze-4.2.3.ebuild works for me using Python 3.2 and Python 2.6.5.
Comment 20 Maxim Konyushikhin 2012-12-16 13:15:50 UTC
cx_Freeze-4.3.1 works on x86.
Comment 21 Sergey Popov gentoo-dev 2012-12-17 10:21:43 UTC
Created attachment 332564 [details]
cx_Freeze-4.3.1.ebuild

Updated ebuild for cx_Freeze: EAPI 5, prevent striping of binaries, some minor improvements
Comment 22 Maxim Konyushikhin 2012-12-17 19:48:53 UTC
Here is the link for a cx_Freeze alternative:
http://code.google.com/p/pts-mini-gpl/wiki/StaticPython

For me, it works better than cx_Freeze as it has no library dependencies.
Comment 23 Florian Berger 2012-12-17 20:09:42 UTC
(In reply to comment #22)
> Here is the link for a cx_Freeze alternative:

I don't see how this is relevant to this bug and the ebuild.

For software comparison and discussion, please use https://forums.gentoo.org/.

For submitting an ebuild for StaticPython, please file a separate bug.

Thanks!
Comment 24 Sergey Popov gentoo-dev 2012-12-18 07:45:51 UTC
+*cx_Freeze-4.3.1 (18 Dec 2012)
+
+  18 Dec 2012; Sergey Popov <pinkbyte@gentoo.org> +cx_Freeze-4.3.1.ebuild,
+  +metadata.xml:
+  Initial commit, wrt bug #184263

Thanks to all