[PyQt] ANN: pyqtdeploy v0.1 Released

Phil Thompson phil at riverbankcomputing.com
Mon Mar 31 17:47:20 BST 2014


On 27-03-2014 11:56 am, Florian Bruhin wrote:
> * Phil Thompson <phil at riverbankcomputing.com> [2014-03-26 18:02:04 
> +0000]:
>> pyqtdeploy v0.1 has been released. It can be installed from PyPI and 
>> there
>> is a public Mercurial repository.
>>
>> Documentation is at http://pyqt.sourceforge.net/Docs/pyqtdeploy/
>>
>> It requires PyQt5 and Python v3 to run. At the moment it only 
>> supports PyQt5
>> and Python v3 applications. For the next release I will look at 
>> adding
>> support for PyQt4 and Python v2. I will look at supporting 
>> cross-compiling
>> (ie. iOS and Android) in a later release - although there is nothing
>> stopping you doing that manually now.
>>
>> If you are building static versions of SIP, PyQt5 and QScintilla 
>> then you
>> will need the current snapshots as they contains fixes for static 
>> builds.
>>
>> This is very much a v0.1 release. Comments and suggestions are 
>> welcome.
>
> Turns out it wasn't a good idea to attach the project file, next 
> try...
>
> * Phil Thompson <phil at riverbankcomputing.com> [2014-03-26 18:02:04 
> +0000]:
>> pyqtdeploy v0.1 has been released. It can be installed from PyPI and 
>> there
>> is a public Mercurial repository.
>>
>> Documentation is at http://pyqt.sourceforge.net/Docs/pyqtdeploy/
>>
>> It requires PyQt5 and Python v3 to run. At the moment it only 
>> supports PyQt5
>> and Python v3 applications. For the next release I will look at 
>> adding
>> support for PyQt4 and Python v2. I will look at supporting 
>> cross-compiling
>> (ie. iOS and Android) in a later release - although there is nothing
>> stopping you doing that manually now.
>>
>> If you are building static versions of SIP, PyQt5 and QScintilla 
>> then you
>> will need the current snapshots as they contains fixes for static 
>> builds.
>>
>> This is very much a v0.1 release. Comments and suggestions are 
>> welcome.
>
> I tried it with my project qutebrowser[1] and since I didn't know 
> what
> to do, listed the __main__.py[2] as main file since that's the entry
> point. The pdy file is at [3].
>
> I got this traceback:
>
> Traceback (most recent call last):
>   File
> "/usr/lib/python3.3/site-packages/pyqtdeploy/gui/project_gui.py", 
> line
> 214, in _build_project
>     Builder(project).build(build_dir)
>   File
> "/usr/lib/python3.3/site-packages/pyqtdeploy/builder/builder.py", 
> line
> 107, in build
>     self._write_qmake(build_dir, freeze)
>   File
> "/usr/lib/python3.3/site-packages/pyqtdeploy/builder/builder.py", 
> line
> 196, in _write_qmake
>     if metadata.qt is not None:

It's the inclusion of the Qt module - fixed in hg.

> Also, you might want to consider adding some newlines to the 
> generated
> file, not sure if whatever library you're using supports that -- it'd
> make less terminals/editors/... get really slow because of the long
> line.

Unfortunately the standard elementtree doesn't support pretty-printing.

Phil


More information about the PyQt mailing list