Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2021 20:59:40 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        Gary Aitken <freebsd@dreamchaser.org>
Cc:        FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: py38-pyside2-tools?
Message-ID:  <CAM8r67D15rN_f0s-xKZPPixyjLpEicNqyBpqbbY3MfyLUqiiqA@mail.gmail.com>
In-Reply-To: <f936d366-8758-ce60-30ee-d5754d43066b@dreamchaser.org>
References:  <f936d366-8758-ce60-30ee-d5754d43066b@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67D15rN_f0s-xKZPPixyjLpEicNqyBpqbbY3MfyLUqiiqA>