← Back to team overview

kicad-developers team mailing list archive

Re: Python 3 now required

 

I made this change[1] to try to fix the Ubuntu python3 situation

Does this not work for you if you start from a clean directory (get rid of
CMake cache)?

[1]
https://gitlab.com/kicad/code/kicad/-/commit/b345d979543d3f42add7e563e9881448b15d01bf

On Mon, Jun 14, 2021 at 5:00 PM Kevin Cozens <kevin@xxxxxxxxx> wrote:

> On 2021-06-14 4:34 p.m., Marco Ciampa wrote:
> > On Mon, Jun 14, 2021 at 03:43:54PM -0400, Jon Evans wrote:
> >> You should be able to override what is found by CMake by defining the
> >> PYTHON_EXECUTABLE variable in your cmake command line
> >
> > Gosh, shame on me, it was so simple!
>
> Not that simple. I tried passing -DPYTHON_EXECUTABLE=python3 and it still
> only finds 2.7. I tried it without the -D part. I have also tried it with
> and without a full path to python3. I even tried putting PYTHON_EXECUTABLE
> before 'cmake' on the line.
>
> How do you tell cmake which version of python you want to use?
>
>
> --
> Cheers!
>
> Kevin.
>
> http://www.ve3syb.ca/               | "Nerds make the shiny things that
> https://www.patreon.com/KevinCozens | distract the mouth-breathers, and
>                                      | that's why we're powerful"
> Owner of Elecraft K2 #2172          |
> #include <disclaimer/favourite>     |             --Chris Hardwick
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

References