Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to change the python installation being used by meson #726

Closed
alphanoobie opened this issue Mar 21, 2025 · 0 comments
Closed

Not able to change the python installation being used by meson #726

alphanoobie opened this issue Mar 21, 2025 · 0 comments

Comments

@alphanoobie
Copy link

alphanoobie commented Mar 21, 2025

I am trying to setup matplotlib for contributing to it but build is failing because meson picks up system python instead of venv

python -m pip install --no-build-isolation --config-settings=editable-verbose=true --editable .
When i run this command i get the following output

Obtaining file:///D:/Programs/matplotlib
  Checking if build backend supports build_editable ... done
  Preparing editable metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing editable metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      + meson setup D:\Programs\matplotlib D:\Programs\matplotlib\build\cp312 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=D:\Programs\matplotlib\build\cp312\meson-python-native-file.ini
      The Meson build system
      Version: 1.7.0
      Source dir: D:\Programs\matplotlib
      Build dir: D:\Programs\matplotlib\build\cp312
      Build type: native build
      Program python3 found: YES (C:\msys64\ucrt64\bin\python3.EXE)

      ..\..\meson.build:4:11: ERROR: Command `C:\msys64\ucrt64\bin\python3.EXE -m setuptools_scm` failed with status 1.

      A full log can be found at D:\Programs\matplotlib\build\cp312\meson-logs\meson-log.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I tried some things to make it use the venv python but had no luck so far.

@mesonbuild mesonbuild locked and limited conversation to collaborators Mar 21, 2025
@dnicolodi dnicolodi converted this issue into discussion #727 Mar 21, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant