Re: pybuild and optional dependencies

2023-12-24 Thread Stefano Rivera
Hi PICCA (2023.12.18_09:41:52_+)

> When I compile the package, I got the dh_python3 computed runtime 
> dependencies from the install_requires.
> 
> Now I would like to build this package but with the larix optional 
> dependencies.
> 
> so I added all the dependencies in the Build-Depends, but dh_python3 still 
> produce the previous dependencies.
> 
> How can I teach pybuild  that I really want xraylarch[larix] ?

This is really a dh_python3 question, it generates the dependencies.
Pass --depends-section=larix (or recommends/suggests as appropriate).

Stefano

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Re: pybuild and optional dependencies

2023-12-18 Thread Gregor Riepl

How can I teach pybuild  that I really want xraylarch[larix] ?


I don't know if there's a mechanism that can add optional dependencies 
automatically, but the easiest way would be to just add them to the

Depends: ...
or the
Recommends: ...
list of the respective package in debian/control.



pybuild and optional dependencies

2023-12-18 Thread PICCA Frederic-Emmanuel
Hello, I am updating the xraylarch package which contain something like this in 
the setup.cfg

```
install_requires =
asteval>=0.9.28
numpy>=1.20
scipy>=1.7
uncertainties>=3.1.4
lmfit>=1.2.1
pyshortcuts>=1.9.0
xraydb>=4.5
silx>=0.15.2
matplotlib>=3.5
sqlalchemy>=2.0
sqlalchemy_utils
h5py>=3.2
hdf5plugin
pillow>=8.3.2
numdifftools
pandas
packaging
pip
pyyaml
toml
termcolor
dill
imageio
charset-normalizer
peakutils
requests
scikit-image
scikit-learn
psutil
pymatgen
mp_api
pycifrw
fabio
pyfai
numexpr==2.8.4; python_version < '3.9'
numexpr>=2.8.7; python_version > '3.8'

[options.extras_require]
wxgui =
wxpython>=4.1
wxutils>=0.3.0
wxmplot>=0.9.57

qtgui =
PyQt5
pyqtwebengine
pyqtgraph

epics =
pyepics>=3.5.0
psycopg2-binary

jupyter =
jupyter_core>=5.0
jupyter_client
jupyter_server
notebook
nbformat
ipywidgets
plotly
py3dmol

doc =
sphinx
numpydoc
sphinxcontrib-bibtex
sphinxcontrib-argdoc
pycairo; platform_system=="Windows"

dev =
pytest
pytest-cov
coverage
build
pre-commit
twine

larix =
%(wxgui)s
%(jupyter)s

all =
%(dev)s
%(doc)s
%(wxgui)s
%(qtgui)s
%(jupyter)s
%(epics)s
```

When I compile the package, I got the dh_python3 computed runtime dependencies 
from the install_requires.

Now I would like to build this package but with the larix optional dependencies.

so I added all the dependencies in the Build-Depends, but dh_python3 still 
produce the previous dependencies.

How can I teach pybuild  that I really want xraylarch[larix] ?

thanks

Frederic