[PyInstaller] PyQt5 QWebEngine on OSX

2018-05-10 Thread Glenn Ramsey
Hi,

PyQt5 QWebEngine on OSX requires

--osx-bundle-identifier=org.qt-project.Qt.QtWebEngineCore

so that the helper program QWebEngineProcess.app can work properly.

The only place I can see that this is documented is here:

hooks/hook-PySide2.QtWebEngineWidgets.py

Is it possible/practical to add it to the generated Info.plist?

It should at least be documented somewhere. Where would be a good place?

Glenn

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To post to this group, send email to pyinstaller@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.


[PyInstaller] How to make the test framework run a .app on OSX

2018-05-10 Thread Glenn Ramsey
Hi,

I'm trying to figure out how to implement a test for PyQt5's QWebEngine on OSX.

The following test setup generates both a 'standard' executable and a .app but
the test framework runs the standard exe, which doesn't work.

@importorskip('PyQt5')
def test_PyQt5_QWebEngine(pyi_builder):
pyi_builder.test_source(
"""
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtCore import QUrl
app = QApplication( [] )
view = QWebEngineView()
view.load( QUrl( "http://www.pyinstaller.org; ) )
view.show()
view.page().loadFinished.connect(lambda ok: app.quit())
app.exec_()
""", pyi_args=['--windowed', '--osx-bundle-identifier',
'org.qt-project.Qt.QtWebEngineCore'])


The .app runs if I double click it in Finder or execute it from the command 
line.

How do I tell the test framework to run the .app instead of the the standard 
exe?

Glenn

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To post to this group, send email to pyinstaller@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.


Re: [PyInstaller] Excluding PyQt5 components

2018-05-10 Thread Jones, Bryan
Glenn,

I don't know, unfortunately. The "new and improved" system now packages
translations and does a much better job of both finding plugins and
tracking Qt library dependencies to include everything needed. So...the
result is much larger.

Based on last few lines of
https://pyinstaller.readthedocs.io/en/v3.3.1/spec-files.html#spec-file-options-for-a-mac-os-x-bundle,
perhaps the best way (at the present) is to script the deletion of unwanted
files. You can, of course, exclude modules (
https://pyinstaller.readthedocs.io/en/v3.3.1/usage.html#what-to-bundle-where-to-search),
but this won't apply to Qt libraries, plugins, or translations.

Bryan

On Thu, May 10, 2018 at 6:03 PM, Glenn Ramsey  wrote:

> Hi,
>
> With the updated PyQt5 packager in develop I notice that I get an extra
> 80MB of
> files compared to using master.
>
> What is the recommended way of excluding PyQt5 components that are not
> required?
>
> Glenn
>
> --
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pyinstaller+unsubscr...@googlegroups.com.
> To post to this group, send email to pyinstaller@googlegroups.com.
> Visit this group at https://groups.google.com/group/pyinstaller.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi State, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To post to this group, send email to pyinstaller@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.


[PyInstaller] [pyinstaller/pyinstaller] 95ecd9: Update README.md

2018-05-10 Thread Bryan A. Jones
  Branch: refs/heads/develop
  Home:   https://github.com/pyinstaller/pyinstaller
  Commit: 95ecd95437228501669caed3ca6afcb5fe001131
  
https://github.com/pyinstaller/pyinstaller/commit/95ecd95437228501669caed3ca6afcb5fe001131
  Author: Glenn Ramsey 
  Date:   2018-05-11 (Fri, 11 May 2018)

  Changed paths:
M tests/README.md

  Log Message:
  ---
  Update README.md


  Commit: 1033a8770ab96cc8fa0f2d3047b2db3db9dcda43
  
https://github.com/pyinstaller/pyinstaller/commit/1033a8770ab96cc8fa0f2d3047b2db3db9dcda43
  Author: Bryan A. Jones 
  Date:   2018-05-10 (Thu, 10 May 2018)

  Changed paths:
M tests/README.md

  Log Message:
  ---
  Merge pull request #3508 from glennra/patch-1

Doc: add missing flag to the pip command in tests/README.md.


Compare: 
https://github.com/pyinstaller/pyinstaller/compare/b31794cf1010...1033a8770ab9
  **NOTE:** This service been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

  Functionality will be removed from GitHub.com on January 31st, 2019.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To post to this group, send email to pyinstaller@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.


[PyInstaller] Excluding PyQt5 components

2018-05-10 Thread Glenn Ramsey
Hi,

With the updated PyQt5 packager in develop I notice that I get an extra 80MB of
files compared to using master.

What is the recommended way of excluding PyQt5 components that are not required?

Glenn

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To post to this group, send email to pyinstaller@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.


Re: [PyInstaller] How to include QtWebEngineProcess.app?

2018-05-10 Thread Glenn Ramsey
Pull requests submitted for both issues:

QtWebEngineProcess issue on develop:
https://github.com/pyinstaller/pyinstaller/pull/3506

Maybe has a few duplicated files, but it works for me and should show how to 
fix it.

OSX style plugin issue on master:
https://github.com/pyinstaller/pyinstaller/pull/3505

Glenn

On 10/05/18 00:17, Jones, Bryan wrote:
> Glenn,
> 
> I have absolutely no idea how to get QtWebEngineProcess.app to work with
> Pyinstaller. I struggled with this for quite a while
> (see https://github.com/pyinstaller/pyinstaller/pull/3233), but have no idea 
> how
> to make that work. Any ideas are welcome!
> 
> Bryan
> 
> On Wed, May 9, 2018 at 12:13 AM, Glenn Ramsey  > wrote:
> 
> Hi,
> 
> I ran into an issue where styles weren't properly included in a frozen 
> app[1].
> 
> This is fixed in the develop branch, but on OSX it now doesn't package
> QtWebEngineProcess.app. This was being packaged in 3.2.1, which is the 
> version I
> was using previously.
> 
> What do I need to do get PyInstaller to include QtWebEngineProcess.app?
> 
> FWIW I wrote the initial PyQt5 support (mostly by copying and revising 
> the PyQt4
> stuff) but that code has pretty much all been improved and replaced now 
> so I no
> longer know how it works.
> 
> Glenn
> 
> [1]
> 
> https://stackoverflow.com/questions/48892935/pyinstaller-packaged-pyqt5-app-uses-wrong-style-on-macos
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pyinstaller+unsubscr...@googlegroups.com
> .
> To post to this group, send email to pyinstaller@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/pyinstaller
> .
> For more options, visit https://groups.google.com/d/optout
> .
> 
> 
> 
> 
> -- 
> Bryan A. Jones, Ph.D.
> Associate Professor
> Department of Electrical and Computer Engineering
> 231 Simrall / PO Box 9571
> Mississippi State University
> Mississippi State, MS 39762
> http://www.ece.msstate.edu/~bjones
> bjones AT ece DOT msstate DOT edu
> voice 662-325-3149
> fax 662-325-2298
> 
> Our Master, Jesus Christ, is on his way. He'll show up right on
> time, his arrival guaranteed by the Blessed and Undisputed Ruler,
> High King, High God.
> - 1 Tim. 6:14b-15 (The Message)
> 
> -- 
> You received this message because you are subscribed to the Google Groups
> "PyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email
> to pyinstaller+unsubscr...@googlegroups.com
> .
> To post to this group, send email to pyinstaller@googlegroups.com
> .
> Visit this group at https://groups.google.com/group/pyinstaller.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To post to this group, send email to pyinstaller@googlegroups.com.
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.