Hi all.
How i can pass configuration options to %pyproject_wheel?
For example, i wish to change this line
%py3_build -- --enable-qcas --executable="%{__python3} -s"
with
%pyproject_wheel ...
but i don't know how to include "--enable-qcas"
On 07-07-2024 19:57, Antonio T. sagitter wrote:
How i can pass configuration options to %pyproject_wheel?
For example, i wish to change this line
%py3_build -- --enable-qcas --executable="%{__python3} -s"
with
%pyproject_wheel ...
but i don't know how to include "--enable-qcas"
I believe `-C--enable-qcas` is waht you are looking for. It's explained in the pyproject-rpm-macros README, which is what you see when visiting https://src.fedoraproject.org/rpms/pyproject-rpm-macros (search for / scroll down to "Passing config settings to build backends").
-- Sandro
On 07. 07. 24 22:05, Sandro wrote:
On 07-07-2024 19:57, Antonio T. sagitter wrote:
How i can pass configuration options to %pyproject_wheel?
For example, i wish to change this line
%py3_build -- --enable-qcas --executable="%{__python3} -s"
with
%pyproject_wheel ...
but i don't know how to include "--enable-qcas"
I believe `-C--enable-qcas` is waht you are looking for. It's explained in the pyproject-rpm-macros README, which is what you see when visiting https://src.fedoraproject.org/rpms/pyproject-rpm-macros (search for / scroll down to "Passing config settings to build backends").
If the project uses setuptools, you might need to use:
%pyproject_wheel -C--global-option=--enable-qcas
Because that's how setuptools expects configuration key=value pairs.
The "-C--enable-qcas" is rejected.
+ /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py -C--enable-qcas /home/sagitter/rpmbuild/BUILD/giacpy-0.7.3/pyproject-wheeldir
Usage: /usr/bin/python3 -m pip wheel [options] <requirement specifier> ... /usr/bin/python3 -m pip wheel [options] -r <requirements file> ... /usr/bin/python3 -m pip wheel [options] [-e] <vcs project url> ... /usr/bin/python3 -m pip wheel [options] [-e] <local project path> ... /usr/bin/python3 -m pip wheel [options] <archive url/path> ...
Arguments to --config-settings must be of the form KEY=VAL <<<
Using "-C--global-option=--enable-qcas" is the right choice.
On 07/07/24 22:22, Miro Hrončok wrote:
On 07. 07. 24 22:05, Sandro wrote:
On 07-07-2024 19:57, Antonio T. sagitter wrote:
How i can pass configuration options to %pyproject_wheel?
For example, i wish to change this line
%py3_build -- --enable-qcas --executable="%{__python3} -s"
with
%pyproject_wheel ...
but i don't know how to include "--enable-qcas"
I believe `-C--enable-qcas` is waht you are looking for. It's explained in the pyproject-rpm-macros README, which is what you see when visiting https://src.fedoraproject.org/rpms/pyproject-rpm-macros (search for / scroll down to "Passing config settings to build backends").
If the project uses setuptools, you might need to use:
%pyproject_wheel -C--global-option=--enable-qcas
Because that's how setuptools expects configuration key=value pairs.
Thanks.
python-devel@lists.fedoraproject.org