<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div><br></div><div>I believe that all of your wishes can be fulfilled with PyInstaller. I work with it to deploy standalone autonomic apps on Windows and Linux. It even supports Pyqt4 and 5. If you use python v3 then you should download the development version of pyinstaller. </div><div><br></div><div>You can install pyinstaller by running</div><div> pip install pyinstaller</div><div>from the command line (pip is a python setup tool for python packages that are online available).</div><div><br></div><div>If pip is not installed search for your OS platform on how to do that.</div><div><br></div><div>Pyinstaller will try to find all its (your python app) dependencies including C object modules and/executables like the Qt runtime libs as well the PyQt libs . You can also add modules manually it cannot detect automatically due to hidden/hacked imports. </div><div><br></div><div>My setup is completely dynamically using imports of native python scripts, python executable C extension modules as well as straight forward standalone executables.</div><div><br></div><div>You can then chose to make a single self extracting executable image or a single directory setup image where both images</div><div>contain all dependencies including the python interpreter and it's libs.</div><div><br></div><div>However you might be forced to make use of a default python install since I do not know how it supports an embedded python setup. But you could let pyinstaller embed (C stuff into python) instead of you taking care of embedding python into C stuff.</div><div><br></div><div>So with pyinstaller it is the other way around.......</div><div> </div><div><br></div><div><br></div><div style="font-size:9px">Best regards,</div><div style="font-size:9px">Rembrand</div><div style="font-size:9px"><br></div><div style="font-size:9px">Cell phone: +31 646.224.526</div><div style="font-size:9px">Email: rembrand@daxlab.com</div><div style="font-size:9px">Sent from my smart phone.</div><div style="font-size:9px"><br></div><div></div><div></div><br><br>-------- Original message --------<br>From: pyqt-request@riverbankcomputing.com <br>Date: 06/08/2015 09:41 (GMT+01:00) <br>To: pyqt@riverbankcomputing.com <br>Subject: PyQt Digest, Vol 133, Issue 10 <br><br>Send PyQt mailing list submissions to<br> pyqt@riverbankcomputing.com<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://www.riverbankcomputing.com/mailman/listinfo/pyqt<br>or, via email, send a message with subject or body 'help' to<br> pyqt-request@riverbankcomputing.com<br><br>You can reach the person managing the list at<br> pyqt-owner@riverbankcomputing.com<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of PyQt digest..."<br><br><br>Today's Topics:<br><br> 1. Re: Which IDE is good for developing PyQt application<br> (Johan Fläckman)<br> 2. [pyqtdeploy] Add ability to specify type of build (Ilya Kulakov)<br> 3. scribus: connecting a c++ signal with a pyqt5 slot (ale rimoldi)<br> 4. Deploying PyQt in a C++ Application (Ferguson, Eric W (397B))<br> 5. [pyqtdeploy] Android Service (Sébastien RAMAGE)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 5 Aug 2015 20:13:42 +0200<br>From: Johan Fläckman <flackman.johan@gmail.com><br>To: oliver <oliver.schoenborn@gmail.com><br>Cc: pyqt@riverbankcomputing.com<br>Subject: Re: [PyQt] Which IDE is good for developing PyQt application<br>Message-ID:<br> <CANpkKNfF_MkDQOuR=_7r-y08uKZPuvjRdaSLJyv2jUBphScfkA@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>I'm using eclipse with pydev, worked out pretty well.<br>On Aug 5, 2015 6:45 PM, "oliver" <oliver.schoenborn@gmail.com> wrote:<br><br>> Yes thanks for the important correction, I had forgotten that. There were<br>> features in Pro that I really wanted (<br>> https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html)<br>> but the Community version is what I used for the first year and is very<br>> feature-full.<br>><br>> On Wed, Aug 5, 2015 at 9:17 AM, Florian Bruhin <me@the-compiler.org><br>> wrote:<br>><br>>> * oliver <oliver.schoenborn@gmail.com> [2015-08-05 09:08:49 -0400]:<br>>> > However, the Community edition is only available free under<br>>> > certain conditions (open source project with active mailing list for 3<br>>> > months, etc). If you can afford the 100$ I would go for it, you'll<br>>> never go<br>>> > back.<br>>><br>>> You're thinking of the (gratis) open-source license for the<br>>> professional edition.<br>>><br>>> The community edition is free (as in free beer and as in freedom!) for<br>>> everyone, but has a limited featureset:<br>>><br>>> https://www.jetbrains.com/pycharm/download/<br>>><br>>> (if someone is interested in my own opinion about it: I tried it after<br>>> hearing many good things about it, and found it doesn't really fit my<br>>> workflow - tiling window manager, using terminals a lot, etc.)<br>>><br>>> Florian<br>>><br>>> --<br>>> http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)<br>>> GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc<br>>> I love long mails! | http://email.is-not-s.ms/<br>>><br>>> _______________________________________________<br>>> PyQt mailing list PyQt@riverbankcomputing.com<br>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt<br>>><br>><br>><br>><br>> --<br>> Oliver<br>> Author of these Open Source: PyPubSub <http://pubsub.sf.net>, Lua-iCxx<br>> <http://lua-icxx.sf.net>, iof <http://iof.sf.net><br>> Regular contributor on StackOverflow<br>> <http://stackoverflow.com/users/869951/schollii><br>><br>><br>> _______________________________________________<br>> PyQt mailing list PyQt@riverbankcomputing.com<br>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt<br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150805/0b606e33/attachment-0001.html><br><br>------------------------------<br><br>Message: 2<br>Date: Wed, 5 Aug 2015 16:02:38 -0400<br>From: Ilya Kulakov <kulakov.ilya@gmail.com><br>To: pyqt@riverbankcomputing.com<br>Cc: Артем Мартынович <artem.martynovich@gmail.com><br>Subject: [PyQt] [pyqtdeploy] Add ability to specify type of build<br>Message-ID: <6F86B11D-3477-4842-B871-D442BD231A1C@gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi Phil,<br><br>We need to be able to specify type of build (release or debug) for our buildsystem.<br>This is how we achieved this: https://github.com/GreatFruitOmsk/pyqtdeploy/commit/8242d631e9f505a657a88b9ec0d8e1e140ee927b.patch <https://github.com/GreatFruitOmsk/pyqtdeploy/commit/8242d631e9f505a657a88b9ec0d8e1e140ee927b.patch> but I believe you will want to make it configurable.<br><br><br>Best Regards,<br>Ilya Kulakov<br><br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150805/2e9dd90d/attachment-0001.html><br><br>------------------------------<br><br>Message: 3<br>Date: Wed, 5 Aug 2015 22:39:39 +0200<br>From: ale rimoldi <ale.comp_06@xox.ch><br>To: PyQt Mailing List <pyqt@riverbankcomputing.com><br>Subject: [PyQt] scribus: connecting a c++ signal with a pyqt5 slot<br>Message-ID: <20150805223939.4804888d@eiseiseis><br>Content-Type: text/plain; charset=US-ASCII<br><br>hey<br><br>i come back with a question i've already asked a few months ago because<br>i still have not found an answer.<br><br>the issue is about porting the scribus scripter engine from pyqt4 to<br>pyqt5 and adapt it to the new way of handling signals and slots<br><br><br>http://scribus.net/websvn/filedetails.php?repname=Scribus&path=%2Ftrunk%2FScribus%2Fscribus%2Fplugins%2Fscripter%2Fpython%2Finit_scripter.py<br><br>has the following code<br><br> def createMenu(mainWindow):<br> Scripter.menu = ScripterMenu(mainWindow)<br><br> Scripter.connect("createMenu(QMainWindow*)", createMenu)<br><br>the code used to work with pyqt4 and connects a createMenu signal<br>emitted by the c++ code and allows the ScripterMenu class to attach new<br>menu entries to the mainWindow object it gets from c++.<br><br>the interface between c++ and python is managed through libpython3.5<br>and pythonize.<br><br>my effort to port the scripter to python3 and pyqt5 is blocked in here<br><br>https://github.com/aoloe/scribus-plugin-scripter/blob/master/src/python/init_scripter.py#L94<br><br>the most common error i'm getting being<br><br>AttributeError: 'PyQt5.QtCore.pyqtSignal' object has no attribute<br>'connect'<br><br>... but the current code simply get's through without creating a<br>navigation entry....<br><br><br>does anybody have a hint what i can do?<br><br>have a nice evening<br>a.l.e<br><br><br>------------------------------<br><br>Message: 4<br>Date: Thu, 6 Aug 2015 04:03:12 +0000<br>From: "Ferguson, Eric W (397B)" <Eric.W.Ferguson@jpl.nasa.gov><br>To: "pyqt@riverbankcomputing.com" <pyqt@riverbankcomputing.com><br>Subject: [PyQt] Deploying PyQt in a C++ Application<br>Message-ID: <D1E8231C.1A5E2%Eric.W.Ferguson@jpl.nasa.gov><br>Content-Type: text/plain; charset="windows-1252"<br><br>Currently, I am developing a C++ GUI application using the Qt framework with OpenGL. Typically this application is driven by user mouse/keyboard input. However, we have recently built a python interface using PyQt so users can drive the application with simple python scripts. This means that we have an embedded python within our C++ application, and whenever a user loads in a python script, that script imports another script which makes PyQt calls to access certain Qt C++ methods in the application.<br><br>All of this functionality works in my development environment, but now I would like to deploy my application without requiring users to have PyQt since they will not need to use it directly within their scripts. Ultimately I would like to deploy the application on Mac, Windows and Linux environments. Since I am completely new to python deployment, I did some reading and it seems like I need to include the following in my deployment:<br><br> 1. Python interpreter<br> 2. Python standard libraries – Ideally, we want users to have access to all of the standard libraries modules in case they want to do complex python programming within their scripts.<br> 3. PyQt<br><br>As a note, right now, I dynamically link in Qt libraries to my application and include those DLLs within the application bundle.<br><br>So now for my questions:<br><br> 1. I read through the pyqtdeploy documentation and it looks like this tool has the capability to statically build all three of the dependencies listed above. However, that tool seems geared towards making complete application binaries. In my case, I would simply want these statically built, and then I would go about linking the dependencies to my application. Would it be feasible to use the pyqtdeploy tool to accomplish my objective?<br> 2. I don’t completely understand the implications of statically building the python interpreter on Windows. It sounds like if I build python statically, I won’t be able to dynamically import C/C++ extension modules. Since I want to include most if not all of the python standard libraries, and the standard library includes C extension modules, then will I have to use a dynamic build of Python on windows?<br> 3. Let’s say I did not want to build PyQt statically, but instead wanted to include it as a set of dynamic libraries. When I installed PyQt, it built .so files for each Qt module (QtGui, QtCore, etc.), however, those libraries have Qt dependencies that are dependent on the location of the Qt C++ libraries on my machine. How can I remove the dependencies in those .so files so that they point at a relative path, or is that even possible?<br><br>Thanks in advance for any help!<br><br>Regards,<br>________________________________<br>Eric Ferguson<br>NASA/Jet Propulsion Laboratory<br>Mission Operations Engineer (397B)<br>818.634.1928<br><br>"It’s human nature to stretch, to go, to see, to understand. Exploration is not a choice, really; it’s an imperative." - Michael Collins<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150806/fd42a010/attachment-0001.html><br><br>------------------------------<br><br>Message: 5<br>Date: Thu, 06 Aug 2015 09:41:12 +0200<br>From: Sébastien RAMAGE <sramage@poifindus.com><br>To: "pyqt@riverbankcomputing.com" <pyqt@riverbankcomputing.com><br>Subject: [PyQt] [pyqtdeploy] Android Service<br>Message-ID: <55C30F98.1070308@poifindus.com><br>Content-Type: text/plain; charset=utf-8; format=flowed<br><br>It would be very fun to be able to create service application on android <br>using python.<br><br>I found this :<br>https://github.com/think-free/QtAndroidHelper<br><br>Do you think this can be include in pyqtdeploy ?<br>It could be a choice when building the .pro, Activity app or Service <br>app or Both ?<br><br><br>Seb<br><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>PyQt mailing list<br>PyQt@riverbankcomputing.com<br>http://www.riverbankcomputing.com/mailman/listinfo/pyqt<br><br>------------------------------<br><br>End of PyQt Digest, Vol 133, Issue 10<br>*************************************<br></body>