freebsd-ports/graphics/py-python-poppler-qt5
Dmitry Marakasov f2fb21df07 graphics/py-python-poppler-qt5: limit supported python verions
With python 3.6:

/usr/local/lib/qt5/bin/qmake -query
sip-build: An internal error occurred...
Traceback (most recent call last):
  File "/usr/local/bin/sip-build", line 33, in <module>
    sys.exit(load_entry_point('sip==5.5.0', 'console_scripts', 'sip-build')())
  File "/usr/local/lib/python3.6/site-packages/sipbuild/tools/build.py", line 37, in main
    handle_exception(e)
  File "/usr/local/lib/python3.6/site-packages/sipbuild/exceptions.py", line 81, in handle_exception
    raise e
  File "/usr/local/lib/python3.6/site-packages/sipbuild/tools/build.py", line 33, in main
    "Build the project in-situ.")
  File "/usr/local/lib/python3.6/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
    project.setup(pyproject, tool, tool_description)
  File "/usr/local/lib/python3.6/site-packages/sipbuild/project.py", line 479, in setup
    self.apply_user_defaults(tool)
  File "/usr/local/lib/python3.6/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
    super().apply_user_defaults(tool)
  File "/usr/local/lib/python3.6/site-packages/sipbuild/project.py", line 228, in apply_user_defaults
    bindings.apply_user_defaults(tool)
  File "project.py", line 50, in apply_user_defaults
    cflags = self.run_pkg_config('--cflags-only-I').split()
  File "project.py", line 45, in run_pkg_config
    text=True)
  File "/usr/local/lib/python3.6/subprocess.py", line 356, in check_output
    **kwargs).stdout
  File "/usr/local/lib/python3.6/subprocess.py", line 423, in run
    with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'text'
*** Error code 1

With python 3.10:

/usr/local/lib/qt5/bin/qmake -query
sip-build: Python v3.10 is not supported

Also call sip-build by python versions to fix build with non-default python.

Approved by:	portmgr blanket
2021-11-03 21:26:42 +03:00
..
files
distinfo
Makefile graphics/py-python-poppler-qt5: limit supported python verions 2021-11-03 21:26:42 +03:00
pkg-descr
pkg-plist graphics/py-python-poppler-qt5: Fix packaging with Python 3.8 and onward 2021-03-21 08:30:59 +00:00