Debian Bug report logs - #814023
pyqt5-dev-tools should be offered in Python 2 and 3 variants

version graph

Package: pyqt5-dev-tools; Maintainer for pyqt5-dev-tools is Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>; Source for pyqt5-dev-tools is src:pyqt5 (PTS, buildd, popcon).

Reported by: Elvis Stansvik <elvstone@gmail.com>

Date: Sun, 7 Feb 2016 16:51:01 UTC

Severity: normal

Found in version 5.4.2+dfsg-1build4~wily1~test1~qt551~1

Done: Elvis Stansvik <elvstone@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, elvstone@gmail.com, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#814023; Package pyqt5-dev-tools. (Sun, 07 Feb 2016 16:51:05 GMT) (full text, mbox, link).


Acknowledgement sent to Elvis Stansvik <elvstone@gmail.com>:
New Bug report received and forwarded. Copy sent to elvstone@gmail.com, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Sun, 07 Feb 2016 16:51:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Elvis Stansvik <elvstone@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: pyqt5-dev-tools should be offered in Python 2 and 3 variants
Date: Sun, 07 Feb 2016 17:48:40 +0100
Package: pyqt5-dev-tools
Version: 5.4.2+dfsg-1build4~wily1~test1~qt551~1
Severity: normal

Dear Maintainer,

The pyqt5-dev-tools currently depends on Python 3. Since packages of PyQt5 are
for both Python 2 and 3 are available, I think it would make sense to split
this package into python3-pyqt5-dev-tools and python2-pyqt5-dev-tools, for
Python 3 and Python2, respectively. The scripts installed would have to be
renamed (e.g. "python2-pyuic5" and "python3-pyuic5" to avoid conflict).

As it currently stands, if I'm developing a PyQt5 application using Python 2, I
need the tools provided by this package. But installing it needlessly forces me
to install Python 3. I have no problem with installing Python 3 on my dev
machine, but when building the application in a clean environment such as
Docker, pulling in Python 3 seems a bit silly. It would be much better if there
was a python2-pyqt5-dev-tools I could install.

-- System Information:
Debian Release: jessie/sid
  APT prefers wily-updates
  APT policy: (500, 'wily-updates'), (500, 'wily-security'), (500, 'wily'), (100, 'wily-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-25-generic (SMP w/4 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pyqt5-dev-tools depends on:
ii  libc6          2.21-0ubuntu4
ii  libgcc1        1:5.2.1-22ubuntu2
ii  libqt5core5a   5.5.1+dfsg-1ubuntu1~wily1~test1
ii  libqt5xml5     5.5.1+dfsg-1ubuntu1~wily1~test1
ii  libstdc++6     5.2.1-22ubuntu2
ii  python3        3.4.3-4ubuntu1
ii  python3-pyqt5  5.4.2+dfsg-1build4~wily1~test1~qt551~1

pyqt5-dev-tools recommends no packages.

pyqt5-dev-tools suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#814023; Package pyqt5-dev-tools. (Sun, 07 Feb 2016 17:12:07 GMT) (full text, mbox, link).


Acknowledgement sent to Dmitry Shachnev <mitya57@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Sun, 07 Feb 2016 17:12:07 GMT) (full text, mbox, link).


Message #10 received at 814023@bugs.debian.org (full text, mbox, reply):

From: Dmitry Shachnev <mitya57@debian.org>
To: Elvis Stansvik <elvstone@gmail.com>, 814023@bugs.debian.org
Subject: Re: Bug#814023: pyqt5-dev-tools should be offered in Python 2 and 3 variants
Date: Sun, 7 Feb 2016 20:10:02 +0300
[Message part 1 (text/plain, inline)]
Hi Elvis,

On Sun, Feb 07, 2016 at 05:48:40PM +0100, Elvis Stansvik wrote:
> The pyqt5-dev-tools currently depends on Python 3. Since packages of PyQt5 are
> for both Python 2 and 3 are available, I think it would make sense to split
> this package into python3-pyqt5-dev-tools and python2-pyqt5-dev-tools, for
> Python 3 and Python2, respectively. The scripts installed would have to be
> renamed (e.g. "python2-pyuic5" and "python3-pyuic5" to avoid conflict).

Please remember that initally our PyQt5 packages were for Python 3 only.
We have added Python 2 packages only to help other applications (like Calibre)
porting from PyQt 4 to PyQt 5. I do not recommend using Python 2 in new code.

> As it currently stands, if I'm developing a PyQt5 application using Python 2, I
> need the tools provided by this package. But installing it needlessly forces me
> to install Python 3. I have no problem with installing Python 3 on my dev
> machine, but when building the application in a clean environment such as
> Docker, pulling in Python 3 seems a bit silly. It would be much better if there
> was a python2-pyqt5-dev-tools I could install.

I will not do this. If you just need to use pyuic with Python 2 then you may
just use “python2 -m PyQt5.uic.pyuic command” which needs only python-pyqt5.

What I can do is to replace a dependency on python3 with a recommendation —
as two of three tools in this package are written in C++ and do not need Python
at all. Let me know if this will help you.

--
Dmitry Shachnev
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#814023; Package pyqt5-dev-tools. (Sun, 07 Feb 2016 18:42:15 GMT) (full text, mbox, link).


Acknowledgement sent to Elvis Stansvik <elvstone@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Sun, 07 Feb 2016 18:42:15 GMT) (full text, mbox, link).


Message #15 received at 814023@bugs.debian.org (full text, mbox, reply):

From: Elvis Stansvik <elvstone@gmail.com>
To: Dmitry Shachnev <mitya57@debian.org>
Cc: 814023@bugs.debian.org
Subject: Re: Bug#814023: pyqt5-dev-tools should be offered in Python 2 and 3 variants
Date: Sun, 7 Feb 2016 19:40:01 +0100
Hi Dimitry,

2016-02-07 18:10 GMT+01:00 Dmitry Shachnev <mitya57@debian.org>:
> Hi Elvis,
>
> On Sun, Feb 07, 2016 at 05:48:40PM +0100, Elvis Stansvik wrote:
>> The pyqt5-dev-tools currently depends on Python 3. Since packages of PyQt5 are
>> for both Python 2 and 3 are available, I think it would make sense to split
>> this package into python3-pyqt5-dev-tools and python2-pyqt5-dev-tools, for
>> Python 3 and Python2, respectively. The scripts installed would have to be
>> renamed (e.g. "python2-pyuic5" and "python3-pyuic5" to avoid conflict).
>
> Please remember that initally our PyQt5 packages were for Python 3 only.
> We have added Python 2 packages only to help other applications (like Calibre)
> porting from PyQt 4 to PyQt 5. I do not recommend using Python 2 in new code.

I see, that explains why there's no Python 2 variant. I wouldn't
recommend Python 2
either, but in this case a dependency on VTK keeps us on Python 2 for now, until
VTK 7 has been packaged (which is Python 3 ready). This should happen soon-ish,
but we need to work on our tool right now. We'll switch to Python 3 as soon as
something like a python3-vtk7 package is ready (debian-sci-maintainers
are working
on it).

>
>> As it currently stands, if I'm developing a PyQt5 application using Python 2, I
>> need the tools provided by this package. But installing it needlessly forces me
>> to install Python 3. I have no problem with installing Python 3 on my dev
>> machine, but when building the application in a clean environment such as
>> Docker, pulling in Python 3 seems a bit silly. It would be much better if there
>> was a python2-pyqt5-dev-tools I could install.
>
> I will not do this. If you just need to use pyuic with Python 2 then you may
> just use “python2 -m PyQt5.uic.pyuic command” which needs only python-pyqt5.

Yea, that's what I'll do for now. The tool I'm using for invoking
pyuic (pyqt-distutils)
even has options letting me specify the command, so that should work fine.

>
> What I can do is to replace a dependency on python3 with a recommendation —
> as two of three tools in this package are written in C++ and do not need Python
> at all. Let me know if this will help you.

That would be much appreciated, because I need the pyrcc5 binary provided by the
package, and if you would drop the dependency to a recommendation, I could avoid
unnecessarily installing Python 3 in the Docker container where I deploy my app.

Thanks for the quick reply.

Elvis

>
> --
> Dmitry Shachnev



Reply sent to Elvis Stansvik <elvstone@gmail.com>:
You have taken responsibility. (Sun, 07 Feb 2016 20:42:10 GMT) (full text, mbox, link).


Notification sent to Elvis Stansvik <elvstone@gmail.com>:
Bug acknowledged by developer. (Sun, 07 Feb 2016 20:42:10 GMT) (full text, mbox, link).


Message #20 received at 814023-done@bugs.debian.org (full text, mbox, reply):

From: Elvis Stansvik <elvstone@gmail.com>
To: 814023-done@bugs.debian.org
Subject: Re: Bug#814023: pyqt5-dev-tools should be offered in Python 2 and 3 variants
Date: Sun, 7 Feb 2016 21:39:30 +0100
2016-02-07 19:40 GMT+01:00 Elvis Stansvik <elvstone@gmail.com>:
> Hi Dimitry,
>
> 2016-02-07 18:10 GMT+01:00 Dmitry Shachnev <mitya57@debian.org>:
>> Hi Elvis,
>>
>> On Sun, Feb 07, 2016 at 05:48:40PM +0100, Elvis Stansvik wrote:
>>> The pyqt5-dev-tools currently depends on Python 3. Since packages of PyQt5 are
>>> for both Python 2 and 3 are available, I think it would make sense to split
>>> this package into python3-pyqt5-dev-tools and python2-pyqt5-dev-tools, for
>>> Python 3 and Python2, respectively. The scripts installed would have to be
>>> renamed (e.g. "python2-pyuic5" and "python3-pyuic5" to avoid conflict).
>>
>> Please remember that initally our PyQt5 packages were for Python 3 only.
>> We have added Python 2 packages only to help other applications (like Calibre)
>> porting from PyQt 4 to PyQt 5. I do not recommend using Python 2 in new code.
>
> I see, that explains why there's no Python 2 variant. I wouldn't
> recommend Python 2
> either, but in this case a dependency on VTK keeps us on Python 2 for now, until
> VTK 7 has been packaged (which is Python 3 ready). This should happen soon-ish,
> but we need to work on our tool right now. We'll switch to Python 3 as soon as
> something like a python3-vtk7 package is ready (debian-sci-maintainers
> are working
> on it).
>
>>
>>> As it currently stands, if I'm developing a PyQt5 application using Python 2, I
>>> need the tools provided by this package. But installing it needlessly forces me
>>> to install Python 3. I have no problem with installing Python 3 on my dev
>>> machine, but when building the application in a clean environment such as
>>> Docker, pulling in Python 3 seems a bit silly. It would be much better if there
>>> was a python2-pyqt5-dev-tools I could install.
>>
>> I will not do this. If you just need to use pyuic with Python 2 then you may
>> just use “python2 -m PyQt5.uic.pyuic command” which needs only python-pyqt5.
>
> Yea, that's what I'll do for now. The tool I'm using for invoking
> pyuic (pyqt-distutils)
> even has options letting me specify the command, so that should work fine.
>
>>
>> What I can do is to replace a dependency on python3 with a recommendation —
>> as two of three tools in this package are written in C++ and do not need Python
>> at all. Let me know if this will help you.
>
> That would be much appreciated, because I need the pyrcc5 binary provided by the
> package, and if you would drop the dependency to a recommendation, I could avoid
> unnecessarily installing Python 3 in the Docker container where I deploy my app.

After some discussion with ScottK on Freenode, it seems it's not so easy to do
the above after all, as it would break building for some other packages.

I'm closing this bug and will live with this inconvenience until we can move to
Python 3, which should hopefully be soon (pending a python3-vtk7 package).

Scott also suggested I look at equivs to fake-provide a python3, which is hacky
but could be OK since I'd only do it in our Dockerfile.

Thanks for looking into this.

Elvis

>
> Thanks for the quick reply.
>
> Elvis
>
>>
>> --
>> Dmitry Shachnev



Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#814023; Package pyqt5-dev-tools. (Mon, 08 Feb 2016 17:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to Dmitry Shachnev <mitya57@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Mon, 08 Feb 2016 17:27:05 GMT) (full text, mbox, link).


Message #25 received at 814023@bugs.debian.org (full text, mbox, reply):

From: Dmitry Shachnev <mitya57@debian.org>
To: Elvis Stansvik <elvstone@gmail.com>
Cc: 814023@bugs.debian.org
Subject: Re: Bug#814023: pyqt5-dev-tools should be offered in Python 2 and 3 variants
Date: Mon, 8 Feb 2016 20:25:03 +0300
[Message part 1 (text/plain, inline)]
Hi Elvis,

On Sun, Feb 07, 2016 at 07:40:01PM +0100, Elvis Stansvik wrote:
>> What I can do is to replace a dependency on python3 with a recommendation —
>> as two of three tools in this package are written in C++ and do not need Python
>> at all. Let me know if this will help you.
>
> That would be much appreciated, because I need the pyrcc5 binary provided by the
> package, and if you would drop the dependency to a recommendation, I could avoid
> unnecessarily installing Python 3 in the Docker container where I deploy my app.

Apparently I can't do even that because that will break at least two packages
in archive which build-depend on pyqt5-dev-tools but not on python3-pyqt5
(relational and weborf)…

--
Dmitry Shachnev
[signature.asc (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 08 Mar 2016 07:26:00 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jan 6 11:26:43 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.