tech-pkg archive

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

Re: python as a tool ?



On Sat, Sep 26, 2026 at 04:50:44AM +0900, Ryo ONODERA wrote:
> Hi,
> 
> Manuel Bouyer <bouyer%antioche.eu.org@localhost> writes:
> 
> > Hello again,
> > I'm working on a package which stops with:
> > -- Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) 
> > -- Packing libraries before installation
> > CMake Error at CMakeLists.txt:60 (message):
> >   Python3 not found.  Cannot pack symbol libraries.
> > Call Stack (most recent call first):
> >   CMakeLists.txt:128 (pack_all_libraries)
> >
> > It actually wants to run a python script in the build phase.
> > AFAIK it doens't need it as a runtime dependancy.
> >
> > We can do e.g.
> > USE_TOOLS+= perl:build
> >
> > but it seems USE_TOOLS doens't supports python.
> >
> > What would be the best way to handle this ?
> > In this specific case, a runtime dependancy on python isn't that bad as
> > this package (kicad-symbols) is useless without kicad, which has a runtime
> > dependancy on python.
> 
> If you include lang/python/tool.mk, python3 symlink will be created
> like imaginary USE_TOOLS+=python:build.

thanks Taylor and Ryo; adding
PYTHON_FOR_BUILD_ONLY=          tool
.include "../../lang/python/tool.mk"

did the trick !

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index