tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Python Version confusion in dependencies (of calibre, in this case)



I am building misc/calibre, which needs py-qt5, which needs py-sip.

My default Python version is 3.7, but calibre requires 2.7.
(PYTHON_VERSION_DEFAULT = 37)
(PYTHON_VERSIONS_ACCEPTED=       27 # as of 3.16.0)

So from calibre, it builds py27-qt5, which is fine.

However, from py27-qt5, it builds py36-sip, which is not fine. It
is interesting that it chooses 3.6 and not 3.7 which is my default.

This is first noticed in my case when building Calibre (2 packages up) like
this:

*
* Running build
*

Traceback (most recent call last):
  File "setup.py", line 121, in <module>
    sys.exit(main())
  File "setup.py", line 106, in main
    command.run_all(opts)
  File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre-3.40.1/setup/__init__.
py", line 242, in run_all
    self.run_cmd(self, opts)
  File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre-3.40.1/setup/__init__.
py", line 238, in run_cmd
    cmd.run(opts)
  File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre-3.40.1/setup/build.py"
, line 255, in run
    self.env = init_env()
  File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre-3.40.1/setup/build.py"
, line 150, in init_env
    from setup.build_environment import msvc, is64bit, win_inc, win_lib, NMAKE
  File "/pkg_comp/obj/pkgsrc/misc/calibre/default/calibre-3.40.1/setup/build_env
ironment.py", line 92, in <module>
    from PyQt5.QtCore import PYQT_CONFIGURATION
ImportError: No module named sip
*** Error code 1

The files built by py


pkg_comp:default.conf# pkg_info py27-qt5
Information for py27-qt5-5.11.3nb3:

Comment:
Python binding for Qt5

Requires:
py36-sip-qt5-[0-9]*
python36>=3.6.0
py36-dbus>=1.1.1nb1
py36-sip>=4.19.4
...

Did this (inhertitance of Python version) break recently, or did I just
not notice because I had PYTHON_VERSION_DEFAULT = 27 before?

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- "What good is a Ring of Power
\X/ rhialto/at/falu.nl      -- if you're unable...to Speak." - Agent Elrond

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index