HomeFreeBSD

graphics/py-python-poppler-qt5: limit supported python verions

Description

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

Details

Provenance
AMDmi3Authored on Nov 3 2021, 6:26 PM
Parents
R11:c7f13313cda2: biology/py-python-libsbml: limit supported python versions, fix build
Branches
Unknown
Tags
Unknown