-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
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.
Metadata
Metadata
Assignees
Labels
No labels