Building with debug symbols #660
-
I am trying to use meson-python to build a Python extension and some shared libraries. By default, the build type is All of the documentation that I have found says that to do a python -m pip install --no-build-isolation --editable . -Csetup-args=-Dbuildtype=debug However, when I do this I get an error that # python -m pip install --no-build-isolation --editable . -Csetup-args=-Dbuildtype=debug
Usage:
/usr/bin/python -m pip install [options] <requirement specifier> [package-index-options] ...
/usr/bin/python -m pip install [options] -r <requirements file> [package-index-options] ...
/usr/bin/python -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python -m pip install [options] [-e] <local project path> ...
/usr/bin/python -m pip install [options] <archive url/path> ...
no such option: -C How do I do debug builds? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This says that pip doesn't have a "-C" option, so it's a pip issue not a meson-python issue. pip added this option in pip 23.1, see https://pip.pypa.io/en/stable/news/#v23-1 Before then you had to use Which version of pip do you have installed? Maybe try upgrading it (pip generally warns you when it is out of date, if it can). |
Beta Was this translation helpful? Give feedback.
This says that pip doesn't have a "-C" option, so it's a pip issue not a meson-python issue.
pip added this option in pip 23.1, see https://pip.pypa.io/en/stable/news/#v23-1
Before then you had to use
--config-settings=setup-args=-Dbuildtype=debug
IIRC.Which version of pip do you have installed? Maybe try upgrading it (pip generally warns you when it is out of date, if it can).