Can't cross-bundle

212 views
Skip to first unread message

jacktheripper

unread,
Mar 4, 2011, 8:40:44 AM3/4/11
to pyins...@googlegroups.com
I'm trying to use pyinstaller to cross-bundle windows exes from linux. According to the instructions on another thread, I did:
`python Configure.py --target-platform=win32 --executable=/media/SYSTEM/Python27/python.exe` -> output
had to edit the glob to match my system but that's not a problem.
Makespec reported no errors and Build.py gives me this.
I use pyinstaller-1.5-rc1 with Python 2.7 on Windows and 2.6 on linux. I have also tried the same with Python 2.6 both on windows and linux to no avail.
Any solutions ?



Martin Zibricky

unread,
Mar 4, 2011, 5:14:54 PM3/4/11
to pyins...@googlegroups.com
jacktheripper píše v Pá 04. 03. 2011 v 05:40 -0800:

In current state pyinstaller does is not able to do that.

Could you point me where you read it?

You always need to run pyinstaller with python which you use on target
platform.

Anyway, for linux you can use wine and install there python windows
version. I know about guy doing it this way.

Hartmut Goebel

unread,
Mar 5, 2011, 5:00:58 AM3/5/11
to pyins...@googlegroups.com
Am 04.03.2011 23:14, schrieb Martin Zibricky:
> In current state pyinstaller does is not able to do that.
> Could you point me where you read it?
You can :-) At least partly. I implemented this feature some about two
years ago. But it only works for pure python programs and if the same
python version is installed somewhere in disk (eg. using wine or on a
separate windows partition).

> Anyway, for linux you can use wine and install there python windows
> version. I know about guy doing it this way

Meanwhile I prefer cross-buildin within wine, too. Setting up all teh
requirements to be able to bundle them is much work, so it's easier tu
just start off wine.

Hmmm, should be remove the cross-bundling feature? Id was never finished
and a non-feature is better than a one not working for interesting cases.

--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult mit Mitglied bei http://www.7-it.de


Martin Zibricky

unread,
Mar 5, 2011, 6:02:38 AM3/5/11
to pyins...@googlegroups.com
Hartmut Goebel píše v So 05. 03. 2011 v 11:00 +0100:

>
> Hmmm, should be remove the cross-bundling feature? Id was never
> finished
> and a non-feature is better than a one not working for interesting
> cases.

You are probably right with removing this feature. If it is not a lot
of precious code.

jacktheripper

unread,
Mar 6, 2011, 2:01:32 AM3/6/11
to PyInstaller
Thanks for the reply. I apologize for creating two posts mistakingly.
I meant the glob.glob() here: http://www.pyinstaller.org/browser/trunk/PyInstaller/configure.py#L54
Not all systems have it this way, but not a problem since you're
removing the feature.
I was under the impression that pyinstaller won't work under wine for
the same reason py2exe doesn't: using an incomplete system call.
Thanks, I'll use wine.
Reply all
Reply to author
Forward
0 new messages