pydist and install_requires
Hello, still working on my silx package... When it comes to python:Depends, I try to add the right entries in the setup.py So I added a bunch of modules there. -"setuptools"] +"setuptools", +# Debian added +"ipython", +"qtconsole", +"enum34", +"fabio", +"h5py", +"lxml", +"mako", +"matplotlib", +"OpenGL", +"pil", +"pyopencl", +"PyQt5", +"PyQt5.qtopengl", +"PyQt5.qtsvg", +"scipy" +] But when compiling I get these informations from dh_python2 and dh_python3 I: dh_python2 pydist:220: Cannot find package that provides opengl. Please add package that provides it to Build-Depends or add "opengl python-opengl" line to debian/pydist-overrides or add proper dependency to Depends by hand and ignore this info. I: dh_python2 pydist:220: Cannot find package that provides pyqt5. Please add package that provides it to Build-Depends or add "pyqt5 python-pyqt5" line to debian/pydist-overrides or add proper dependency to Depends by hand and ignore this info. I: dh_python2 pydist:220: Cannot find package that provides pyqt5.qtopengl. Please add package that provides it to Build-Depends or add "pyqt5.qtopengl python-pyqt5.qtopengl" line to debian/pydist-overrides or add proper dependency to Depends by hand and ignore this info. I: dh_python2 pydist:220: Cannot find package that provides pyqt5.qtsvg. Please add package that provides it to Build-Depends or add "pyqt5.qtsvg python-pyqt5.qtsvg" line to debian/pydist-overrides or add proper dependency to Depends by hand and ignore this info. So my question is why do I have OpenGL -> opengl in the dh_python2 message. (is it why it can not find the right pacakge ?) for pyqt5 it seems more complicate since the debian packqges split the PyQt5 namespace. What should I put in order to have the right auto-generated Dependecies. thanks for your help Frederic
Re: pydist and install_requires
On Thu, Aug 17, 2017 at 09:16:25AM +, PICCA Frederic-Emmanuel wrote: > When it comes to python:Depends, I try to add the right entries in the > setup.py Isn't just adding the package names to Depends easier? > I: dh_python2 pydist:220: Cannot find package that provides opengl. Please > add package that provides it to Build-Depends or add "opengl python-opengl" > line to debian/pydist-overrides or add proper dependency to Depends by hand > and ignore this info. > I: dh_python2 pydist:220: Cannot find package that provides pyqt5. Please add > package that provides it to Build-Depends or add "pyqt5 python-pyqt5" line to > debian/pydist-overrides or add proper dependency to Depends by hand and > ignore this info. > I: dh_python2 pydist:220: Cannot find package that provides pyqt5.qtopengl. > Please add package that provides it to Build-Depends or add "pyqt5.qtopengl > python-pyqt5.qtopengl" line to debian/pydist-overrides or add proper > dependency to Depends by hand and ignore this info. > I: dh_python2 pydist:220: Cannot find package that provides pyqt5.qtsvg. > Please add package that provides it to Build-Depends or add "pyqt5.qtsvg > python-pyqt5.qtsvg" line to debian/pydist-overrides or add proper dependency > to Depends by hand and ignore this info. So do you have python-opengl, python-pyqt5 etc in Build-Depends? -- WBR, wRAR signature.asc Description: PGP signature
RE:pydist and install_requires
Hello Andrey > Isn't just adding the package names to Depends easier? I just want this to be automatically generated and "upstreamable". > So do you have python-opengl, python-pyqt5 etc in Build-Depends? yes, I think that I found the problem for opengl. the egg info gives the name of the project which is PyOpenGL. (I am testing this now) but for pyqt5 I do not have egg informations. Maybe the solution would be to add egg info to pyqt5. But for the split ??? Cheers Frederic
Re: pydist and install_requires
On 17/08/17 10:43, PICCA Frederic-Emmanuel wrote: Hello Andrey Isn't just adding the package names to Depends easier? I just want this to be automatically generated and "upstreamable". So do you have python-opengl, python-pyqt5 etc in Build-Depends? yes, I think that I found the problem for opengl. the egg info gives the name of the project which is PyOpenGL. (I am testing this now) Indeed, you need to use the name registered on pypi, which can be different from the Debian package name. For OpenGL, the project is registered as PyOpenGL, for PyQt5 the name is PyQt5. but for pyqt5 I do not have egg informations. Maybe the solution would be to add egg info to pyqt5. But for the split ??? There are no individual registered names for the PyQt5 components, so you can only provide PyQt5 in the setup.py metadata, and you must list the necessary components yourself in d/control. Ghis
RE:pydist and install_requires
Hello Ghislain > Indeed, you need to use the name registered on pypi, which can be > different from the Debian package name. For OpenGL, the project is > registered as PyOpenGL, for PyQt5 the name is PyQt5. yes it works :) > but for pyqt5 I do not have egg informations. Maybe the solution would be to > add egg info to pyqt5. > But for the split ??? > There are no individual registered names for the PyQt5 components, so > you can only provide PyQt5 in the setup.py metadata, and you must list > the necessary components yourself in d/control. yes in my case I will override pyqt5 in the pydist-override in order to add the right dependencies. Cheers Fred