Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 855
    • Issues 855
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 55
    • Merge requests 55
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Merge requests
  • !2928

build: Let Meson figure out Python installation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Georges Basile Stavracas Neto requested to merge gbsneto/python-find into main Sep 29, 2022
  • Overview 4
  • Commits 1
  • Pipelines 1
  • Changes 1

Commit 4a4d9eb6 initially switched Meson to find the python program using find_program('python3'). Sadly that caused a regression, since in some cases with MSVC it would fallback to 'meson.exe runpython', which is undesired.

However, that particular code was reverted back to an also undesired lookup method, find_installation('python3'). This way of finding python also breaks on Windows + MSVC, in particular when setting it up as follows:

winget install python
winget install meson

This fails building GLib with:

python3 not found

Fix that by not passing any argument to find_installation(), which lets Meson figure it all out by itself.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gbsneto/python-find