[PyQt] [pyqtdeploy] Add support for loading C-extension modules

Ilya Kulakov kulakov.ilya at gmail.com
Tue Nov 11 16:38:02 GMT 2014


Hi Phil.

Do you have a decision regarding that patch?
My building system heavily depends on it, so  I have to decide whether to diverge from upstream.

Sent from my iPhone

> On 9 нояб. 2014 г., at 4:53, Phil Thompson <phil at riverbankcomputing.com> wrote:
> 
> On 08/11/2014 12:14 am, Ilya Kulakov wrote:
>>> On 7 нояб. 2014 г., at 16:12, Phil Thompson <phil at riverbankcomputing.com> wrote:
>>>> On 07/11/2014 6:00 pm, Ilya Kulakov wrote:
>>>> 1. How can one set location that is unknown until application is started?
>>> If you specify a relative directory on sys.path it will be resolved relative to the directory containing the application.
>> What is considered as an application directory under each platform?
> 
> The directory containing argv[0].
> 
>>>> 2. You do not need to duplicate file structure so standard python
>>>> importing can find the packages. Also it follows cx_freeze
>>>> conventions.
>>> Sorry I don't understand.
>> For python to find a C-extension module zmq.backend.cython._poll one
>> have to add a path to a directory
>> which contains package zmq that contains subpackage backend that
>> contains subpackage cython that contains file _poll.so.
>> This is extremely inconvenient for binary distributions to have such
>> pointless deep folders.
> 
> In this scenario are the .py files of the zmq package embedded in the application?
> 
> Phil


More information about the PyQt mailing list