I'm struggling to understand what the "correct" way for handling python flavors is.
I'm attempting to port some software that depends on py-qt5; on
However, I hit a snag when I added dependencies to py-sutil the following way:
When I attempted a
I gather, psutil is set to not support python 3.7, even though there is a binary package
I read: it should support building flavor
Right now, I see following options and I'm unsure how best to proceed:
Or am I misinterpreting the inner workings of the ports system? After all, I can just as well
I'm attempting to port some software that depends on py-qt5; on
amd64, there's a binary packages for py37-qt5 only at the moment. So, I figured I'll make my port USE=python:3.7.However, I hit a snag when I added dependencies to py-sutil the following way:
Code:
RUN_DEPENDS=${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR}
When I attempted a
make package, this leads to
Code:
===> xxx depends on executable: fvwm2 - found
===> xxx depends on executable: pyuic5 - found
===> xxx depends on package: py37-yaml>=3.11 - found
===> xxx depends on package: py37-psutil>0 - not found
===> py37-psutil-5.8.0 Unknown flavor 'py37', possible flavors: py38.
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/sysutils/py-psutil
I gather, psutil is set to not support python 3.7, even though there is a binary package
py37-psutil? What surprises me in particular, is the fact that psutil actually sets
Code:
USES= python:3.6+
py37?Right now, I see following options and I'm unsure how best to proceed:
- File a bug report with
py-psutilport and ask to addFLAVORS=py37(which seems to do the trick, as testing shows) - be a complete PITA and argue that the ports system isn't working? (just kidding...)
- Change my port to not depend distinctly on
python:3.7and just live with having to compilepy-qt5for python 3.8 myself instead of using a binary package - go into a cave and reflect on my life choices of porting software in the first place (still kidding...)
Or am I misinterpreting the inner workings of the ports system? After all, I can just as well
pkg install py37-psutil and keep going back to make package. Having resolved the dependency, my port packaging appears to finish fine afterwards.