[Python-modules-team] Bug#890200: PyQt5 package should provide an egg-info

2018-02-27 Thread Ghislain Vaillant
On Mon, 12 Feb 2018 23:35:14 -0500 Scott Kitterman  wrote:
> On Sunday, February 11, 2018 09:19:59 PM VA wrote:
> > Package: python-pyqt5
> > Version: 5.9.2+dfsg-1
> > 
> > Many Debian python packages include an egg-info folder, but python-
pyqt5
> > does not.
> 
> The PyQt5 upstream does not use standard Python tools for building
the 
> package.  As shipped by upstream, a source build of PyQt5:
> 
> python3 configure.py
> make
> sudo make install
> 
> does not install any egg information.  Only the upstream wheels
provide 
> anything.  They provide a PyQt5-5.10.dist-info directory which
appears to 
> perform a similar function.
> 
> This is probably not feasible in Debian as we split PyQt5 into a
number of 
> sub-packages to minimize the dependencies that get pulled in for
various 
> applications.  I'm not sure how to manage the egg-info for such a
case.
> 
> Scott K

The problem is that anything that explicitly depends on pyqt5 (as in
'pyqt5' being listed in install_requires) yields a DistributionNotFound
error. I am having this very issue with the recent release of spyder.

A solution is to remove the explicit dependency in order to trick the
setuptools metadata, but it is pretty ugly. Is there really no other
way?

Ghis

___
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team


[Python-modules-team] Bug#890200: PyQt5 package should provide an egg-info

2018-02-12 Thread Scott Kitterman
On Sunday, February 11, 2018 09:19:59 PM VA wrote:
> Package: python-pyqt5
> Version: 5.9.2+dfsg-1
> 
> Many Debian python packages include an egg-info folder, but python-pyqt5
> does not.

The PyQt5 upstream does not use standard Python tools for building the 
package.  As shipped by upstream, a source build of PyQt5:

python3 configure.py
make
sudo make install

does not install any egg information.  Only the upstream wheels provide 
anything.  They provide a PyQt5-5.10.dist-info directory which appears to 
perform a similar function.

This is probably not feasible in Debian as we split PyQt5 into a number of 
sub-packages to minimize the dependencies that get pulled in for various 
applications.  I'm not sure how to manage the egg-info for such a case.

Scott K

___
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team


[Python-modules-team] Bug#890200: PyQt5 package should provide an egg-info

2018-02-11 Thread VA

Package: python-pyqt5
Version: 5.9.2+dfsg-1

Many Debian python packages include an egg-info folder, but python-pyqt5 
does not.


For example, when python-requests is installed with apt:

% dpkg -L python-requests | grep egg-info
/usr/lib/python2.7/dist-packages/requests-2.18.4.egg-info
/usr/lib/python2.7/dist-packages/requests-2.18.4.egg-info/PKG-INFO
/usr/lib/python2.7/dist-packages/requests-2.18.4.egg-info/dependency_links.txt
/usr/lib/python2.7/dist-packages/requests-2.18.4.egg-info/not-zip-safe
/usr/lib/python2.7/dist-packages/requests-2.18.4.egg-info/requires.txt
/usr/lib/python2.7/dist-packages/requests-2.18.4.egg-info/top_level.txt
% dpkg -L python-pyqt5 | grep egg-info
%

When installing a pip package which requires a python dependency that is 
already installed with Debian packages, pip finds it and uses the 
Debian-installed package.
Since python-pyqt5 does not provide any, pip fails to find 'PyQt5' 
locally and so programs may fail to run even though PyQt5 is installed.


___
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team