Since you're taking this feature out, I was trying to write up my own
script to automate this for my project.

#!/bin/bash

PYDIR="c:/Python27"
PYTHON="wine $PYDIR/python.exe"
WINPWD=`winepath -w \`pwd\``

cd pyinstaller

$PYTHON Configure.py
$PYTHON Makespec.py -p $WINPWD $WINPWD/diceroller.py
$PYTHON Build.py diceroller/diceroller.spec

I'm presuming that pywin32 has already been installed under wine
(which it has on my machine).  Now I just went ahead and installed the
latest stable version of Python into Wine as well (2.7) and so I'm
using PyInstaller 1.5rc1 as advised for this version of Python in
Windows.

However, it seems that when I compile this for Windows, it doesn't
pull in any of my modules except the script I specify.  As soon as my
executable makes a call into one of the other files, it says "'module'
object has no attribute 'othermodulefunction'" as though the
'othermodulefunction' just doesn't exist.  It works just fine when I
compile it as a Linux binary though.

Anyone know what could be going on here or some work around?

Rene
On Apr 14, 11:22 am, Hartmut Goebel <[email protected]>
wrote:
> Hi,> So I was taking a look at this<http://groups.google.com/group/
> > pyinstaller/browse_thread/thread/2884993f9b070968>  here on cross
> > compiling from Linux to Windows.
>
> I'm the one who implemented this feature some time ago. And I'm going to
> remove it in the near future, since it does one work half. Please have a
> look at
> <http://groups.google.com/group/pyinstaller/browse_thread/thread/61067...>> 
> Can it work with Wine?
>
> Yes, it works fine with Wine. (In difference to py2exe which did not
> work in wine last time I tried.) This is what I'm using now.
>
> One of the benefits is: one can use a shell script to install Python and
> everything you need in wine. And after bundling, you can simply delete
> the wine directory. So you'll get an test environment quite cheep.
>
> Here are parts of my setup-script:
>
> PYHOME=c:/python25
> PYTHON="wine $PYHOME/python.exe"
> WINREPO=~/devel/windows-repos  # my repository of Windows software
>
> msiexec /q /i $WINREPO/python-2.5.4.msi
> cd /tmp
> curlhttp://python-distribute.org/distribute_setup.py| $PYTHON
> wine easy_install pip virtualenv
> cp -v $WINREPO/mfc71.dll $(winepath -u $PYHOME)/DLLs
> wine $WINREPO/pywin32-209.1.win32-py2.5.exe
> wine $WINREPO/nsis-*-setup.exe
>
> --
> Schönen Gruß - Regards
> Hartmut Goebel
> Dipl.-Informatiker (univ.), CISSP, CSSLP
>
> Goebel Consult
> Spezialist für IT-Sicherheit in komplexen 
> Umgebungenhttp://www.goebel-consult.de
>
> Monatliche Kolumne:http://www.cissp-gefluester.de/
> Goebel Consult mit Mitglied beihttp://www.7-it.de
>
>  smime.p7s
> 6KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to