py38-pyside2-tools?

Tomasz CEDRO tomek at cedro.info
Sun Aug 29 19:00:22 UTC 2021


On Sun, Aug 29, 2021 at 8:25 PM Gary Aitken  wrote:
>
> I'm trying to build a development version of FreeCAD, so have a modified
> Makefile...
>
> With USES= "...python:3.6+..." it builds ok and uses py37-pyside2-5.15.2.
>
> It's supposed to be built using python 3.8, so I changed USES to python:3.8+.
> However, that results in:
>    ===>   FreeCAD-m depends on package: py38-pyside2-tools>5.14.0 - not found
>    ===>  py38-pyside2-tools-5.15.2 Unknown flavor 'py38', possible flavors: py37.
>
> The Makefile specifies:
>    BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}pyside2-tools>5.14.0:devel/pyside2-tools@${PY_FLAVOR} ...
> and
>    LIB_DEPENDS= ...
> libpyside2.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}.so:devel/pyside2@${PY_FLAVOR}
>
> I tried looking in devel and see:
>    pyside2
>    pyside2-tools
>
> pkg info | grep py37 shows a boatload (79) files, including:
>   py37-pyside2-5.15.2            Python Qt bindings for Qt 5.12+
>   py37-pyside2-tools-5.15.2      Pyside2 development tools
>
> pkg info | grep py38 shows only
> $ pkg info | grep py38
> py38-cython-0.29.21    Compiler for Writing C Extensions for the Python Language
> py38-numpy-1.16.6,1    The New Numeric Extension to Python
> py38-setuptools-44.0.0 Python packages installer
> py38-sqlite3-3.8.7_7  Standard Python binding to the SQLite3 library (Python 3.8)
> py38-tkinter-3.8.7_6  Python bindings to the Tk widget set (Python 3.8)
>
> I don't know squat about how python works...
> Hints?
>
> I'm on amd64 11.4 RELEASE
> Gary

Hey Gary :-)

You seem to have py37 pyside2 installed so it wants to use this
package. Have you tried upgrading to py38-pyside2 ? It should use that
package then. It would be best to upgrade all python related packages
to use py38 and the problem should be gone :-)

If you use pkg then 'pkg update; pkg upgrade' should do the job :-) If
you use ports then probably you will have to update python to 3.8 in
the first place and use it as default.

There is a Handbook manual page on Flavors including Python setup for a Port:

https://docs.freebsd.org/en/books/porters-handbook/flavors/

Good luck :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


More information about the freebsd-questions mailing list