On Sat, Jul 14, 2012 at 8:55 AM, Sergio Pulgarín <[email protected]> wrote:
> hello, thank you so much for your help!

You're welcome.

> It seems like that fresh install fixed the problem.
> Now the executable is being created as well as
> that weird __bootstrap__ script. I do have setuptools
> installed.

That *might* be responsible for that extra script but some more
analysis would be needed. If you do discover that is the case, please
let me know.

> Now, I bet you been asked this before:
> Is there are way to distribute one standalone
> binary, which includes all the shared libraries?
> I'm using a couple of .so from a 'C' extension, and
> I'd like to have to 'ship' as few files as possible.

Yes, I have been asked that in the past. Since you are on Linux you
can statically link the Python executable with all of the modules that
you are intending to use. This makes a much larger base executable and
you may run into further difficulties because of the fact that shared
libraries are far more common and less testing will have been done
with static executables. In fact, I've found that on Windows many
modules are statically linked into the base Python DLL but that is
*not* the case on Linux. I wish you all the best with your pursuit,
though. :-)

> Thanks again,
>
>
> Sergio
>
>
> On 13 July 2012 17:46, Anthony Tuininga <[email protected]> wrote:
>>
>> Hi,
>>
>> I found that I got that result if I had done a previous install.
>> distutils is "smart" and only copies newer files. My suggestion is to
>> remove everything in
>>
>> /usr/local/lib/python2.7/site-packages/cx_Freeze AND
>> <cx_Freeze source directory>/build
>>
>> and retry the command
>>
>> python setup.py install
>>
>> in the cx_Freeze source directory. Your output should include the
>> following lines that are currently missing:
>>
>> running install_packagedata
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> copying initscripts/SharedLib.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> copying initscripts/Console.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> copying initscripts/SharedLibSource.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> copying initscripts/Console3.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> copying initscripts/ConsoleSetLibPath.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> copying initscripts/ConsoleKeepPath.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> copying initscripts/ConsoleKeepPath3.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/initscripts
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/service
>> copying samples/service/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/service
>> copying samples/service/Config.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/service
>> copying samples/service/ServiceHandler.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/service
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport
>> copying samples/relimport/relimport.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport
>> copying samples/relimport/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/zope
>> copying samples/zope/qotd.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/zope
>> copying samples/zope/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/zope
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/simple
>> copying samples/simple/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/simple
>> copying samples/simple/hello.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/simple
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/advanced
>> copying samples/advanced/advanced_2.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/advanced
>> copying samples/advanced/advanced_1.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/advanced
>> copying samples/advanced/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/advanced
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/PyQt4
>> copying samples/PyQt4/PyQt4app.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/PyQt4
>> copying samples/PyQt4/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/PyQt4
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/wx
>> copying samples/wx/wxapp.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/wx
>> copying samples/wx/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/wx
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/matplotlib
>> copying samples/matplotlib/test_matplotlib.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/matplotlib
>> copying samples/matplotlib/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/matplotlib
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/Tkinter
>> copying samples/Tkinter/SimpleTkApp.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/Tkinter
>> copying samples/Tkinter/setup.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/Tkinter
>> creating /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1
>> copying samples/relimport/pkg1/__init__.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1
>> copying samples/relimport/pkg1/sub6.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1
>> copying samples/relimport/pkg1/sub2.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1
>> copying samples/relimport/pkg1/sub1.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1
>> copying samples/relimport/pkg1/sub4.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1
>> creating
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/advanced/modules
>> copying samples/advanced/modules/testfreeze_2.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/advanced/modules
>> copying samples/advanced/modules/testfreeze_1.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/advanced/modules
>> creating
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1/pkg2
>> copying samples/relimport/pkg1/pkg2/sub5.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1/pkg2
>> copying samples/relimport/pkg1/pkg2/__init__.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1/pkg2
>> copying samples/relimport/pkg1/pkg2/sub3.py ->
>> /usr/lib/python2.7/site-packages/cx_Freeze/samples/relimport/pkg1/pkg2
>>
>> I suppose the other possibility is that you have some distutils
>> related stuff installed that is wreaking havoc with cx_Freeze -- the
>> __bootstrap__ stuff is not something I have seen before. Perhaps you
>> install setuptools or its cousin?
>>
>> Anthony
>>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> cx-freeze-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cx-freeze-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to