Bug#1017768: qutip: build with pyproject.toml

Drew Parsons dparsons at debian.org
Fri Aug 19 23:37:53 BST 2022


Source: qutip
Version: 4.7.0-3
Severity: normal
Control: forwarded -1 https://github.com/qutip/qutip/issues/1875

It should be possible to build using pyproject.toml (PEP517),
Build-Depends: pybuild-plugin-pyproject

The problem is that that method does not understand the --with-openmp
flag added to setup.py in the same way as a distutils build (the flag
is ignored)

Discussed upstream at https://github.com/qutip/qutip/issues/1875

Upstream reports that the required flag with python3 -m build
would be

  --config-setting="--global-option=--with-openmp"

(and --build-option does not do the job).

But --global-option gives an error for us (different python3-build
versions?):
    
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 211, in _build_with_temp_dir
    sys.argv = (sys.argv[:1] + setup_command +
TypeError: can only concatenate list (not "str") to list
    

Something else is needed.



More information about the debian-science-maintainers mailing list