[PyQt] Help: packaging PyQt app
Ruslan Popov
ruslan.popov at gmail.com
Wed Mar 3 09:09:03 GMT 2010
Could someone tell me how to convert python package (python setup.py
On Tue, Mar 2, 2010 at 8:10 PM, Scott Ballard <scott at scottballard.net>wrote:
> You need to include sip:
> http://www.py2exe.org/index.cgi/Py2exeAndPyQt
>
> from distutils.core import setup
> import py2exe
> setup(windows=[{"script":"main.py"}], options={"py2exe":{"includes":["sip"]}})
>
> -Scott
>
>
> On 3/2/2010 8:51 AM, Anshul Jain wrote:
>
> I have made a very simple browser using Qwebview in PyQt. Now i want to
> package it as an installer to distribute it. I have tried out py2exe. But
> after i do the command:
>
> python setup.py py2exe
>
> and then try and run the .exe file created, i get an error, "no module
> named sip found". please help me where am i going wrong. My setup.py code is
> as follows:
>
> from distutils.core import setup
>
> setup(name = "Aura Browser",
> version = "0.1",
> description = "A tiny Web Browser",
> author = "Anshul kumar Jain",
> author_email = "anshul at seeta.in",
> url = "http://seeta.in/j/team.html",
> packages = [""],
> data_files = [("browser/images", ["images/back.png",
> "images/home.png",
> "images/reload.png",
> "images/next.png",
> "images/stop.png",])]
> )
>
> the code has 'browser.py' as main file and a Qt python class file
> 'httpWidget.py'
>
> Please help me sort out the problem.
>
> Thanks
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature database 4909 (20100302) __________
>
> The message was checked by ESET NOD32 Antivirus.
> http://www.eset.com
>
>
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
--
Ruslan Popov
phone: +7 916 926 1205
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100303/bb5f9f57/attachment.html>
More information about the PyQt
mailing list