[PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
I'm trying to build PyQt5 for Py3 on Kubuntu Raring. However I got the
error that Sip was not found:

This is the GPL version of PyQt 5.0 (licensed under the GNU General Public
License) for Python 3.3.1 on linux.
...
Found the license file pyqt-gpl.sip.
Error: Make sure you have a working sip on your PATH or use the --sip argument
to explicitly specify a working sip.

Then I went and installed the python3-sip-dev package which is
supposed to contains the code generator tool and the development
headers needed to develop Python 3 bindings with sip (from the
package description) but even then I get the same error.

Comparing the Python2 Sip package filelist:
http://packages.ubuntu.com/raring/amd64/python-sip-dev/filelist with
the Python3 Sip package filelist
http://packages.ubuntu.com/raring/amd64/python3-sip-dev/filelist, I
note that there is a /usr/bin/sip in the python-sip-dev package but no
similar file in the python3-sip-dev package. Is this then a packaging
error and should I report it as such? (Even the upstream Debian Sid
packages have the same situation.) Or is Sip the same for both Py2 and
Py3 in which case I should install python-sip-dev even for Py3?

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Phil Thompson
On Tue, 25 Jun 2013 20:16:35 +0530, Shriramana Sharma samj...@gmail.com
wrote:
 I'm trying to build PyQt5 for Py3 on Kubuntu Raring. However I got the
 error that Sip was not found:
 
 This is the GPL version of PyQt 5.0 (licensed under the GNU General
Public
 License) for Python 3.3.1 on linux.
 ...
 Found the license file pyqt-gpl.sip.
 Error: Make sure you have a working sip on your PATH or use the --sip
 argument
 to explicitly specify a working sip.
 
 Then I went and installed the python3-sip-dev package which is
 supposed to contains the code generator tool and the development
 headers needed to develop Python 3 bindings with sip (from the
 package description) but even then I get the same error.
 
 Comparing the Python2 Sip package filelist:
 http://packages.ubuntu.com/raring/amd64/python-sip-dev/filelist with
 the Python3 Sip package filelist
 http://packages.ubuntu.com/raring/amd64/python3-sip-dev/filelist, I
 note that there is a /usr/bin/sip in the python-sip-dev package but no
 similar file in the python3-sip-dev package. Is this then a packaging
 error and should I report it as such? (Even the upstream Debian Sid
 packages have the same situation.) Or is Sip the same for both Py2 and
 Py3 in which case I should install python-sip-dev even for Py3?

The code generator is the same for all Python versions.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
On Tue, Jun 25, 2013 at 8:19 PM, Phil Thompson
p...@riverbankcomputing.com wrote:
 The code generator is the same for all Python versions.

Hi thanks for this quick [as always! :-)] reply!

So then it seems to me that the packaging should be changed. Currently
the sip4 source package (http://packages.debian.org/source/sid/sip4)
produces these binary packages:

python-sip: runtime library
python-sip-dbg: runtime library (debug extension)
python-sip-dev: development files
python-sip-doc: documentation
python3-sip: runtime library
python3-sip-dbg: runtime library (debug extension)
python3-sip-dev: development files

It would seem that the common code generator should be moved to
python-sip-dev-common and python-sip-dev and python3-sip-dev should
both depend on it. python-sip-doc should also be moved to
python-sip-doc-common.

Does that sound about right? If OK, I can file a Debian bug for this.

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Phil Thompson
On Tue, 25 Jun 2013 20:46:57 +0530, Shriramana Sharma samj...@gmail.com
wrote:
 On Tue, Jun 25, 2013 at 8:19 PM, Phil Thompson
 p...@riverbankcomputing.com wrote:
 The code generator is the same for all Python versions.
 
 Hi thanks for this quick [as always! :-)] reply!
 
 So then it seems to me that the packaging should be changed. Currently
 the sip4 source package (http://packages.debian.org/source/sid/sip4)
 produces these binary packages:
 
 python-sip: runtime library
 python-sip-dbg: runtime library (debug extension)
 python-sip-dev: development files
 python-sip-doc: documentation
 python3-sip: runtime library
 python3-sip-dbg: runtime library (debug extension)
 python3-sip-dev: development files
 
 It would seem that the common code generator should be moved to
 python-sip-dev-common and python-sip-dev and python3-sip-dev should
 both depend on it. python-sip-doc should also be moved to
 python-sip-doc-common.
 
 Does that sound about right? If OK, I can file a Debian bug for this.

I don't care - nothing to do with me.

Phil
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Scott Kitterman


Phil Thompson p...@riverbankcomputing.com wrote:

On Tue, 25 Jun 2013 20:46:57 +0530, Shriramana Sharma
samj...@gmail.com
wrote:
 On Tue, Jun 25, 2013 at 8:19 PM, Phil Thompson
 p...@riverbankcomputing.com wrote:
 The code generator is the same for all Python versions.
 
 Hi thanks for this quick [as always! :-)] reply!
 
 So then it seems to me that the packaging should be changed.
Currently
 the sip4 source package (http://packages.debian.org/source/sid/sip4)
 produces these binary packages:
 
 python-sip: runtime library
 python-sip-dbg: runtime library (debug extension)
 python-sip-dev: development files
 python-sip-doc: documentation
 python3-sip: runtime library
 python3-sip-dbg: runtime library (debug extension)
 python3-sip-dev: development files
 
 It would seem that the common code generator should be moved to
 python-sip-dev-common and python-sip-dev and python3-sip-dev should
 both depend on it. python-sip-doc should also be moved to
 python-sip-doc-common.
 
 Does that sound about right? If OK, I can file a Debian bug for this.

I don't care - nothing to do with me.

I'll take a look at it. 

Scott K
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
On Tue, Jun 25, 2013 at 9:09 PM, Scott Kitterman deb...@kitterman.com wrote:
 I'll take a look at it.

Scott thank you very much! Please do so. RIght now I'm having to
install python-sip-dev for developing Python3 bindings despite the
presence of a python3-sip-dev which doesn't seem appropriate
packaging.

Thanks again!

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Dmitry Shachnev
Yes, /usr/bin/sip is in python-sip-dev package. Maybe it will make
sense to move it into a separate package, but I don't see much need in
that.

--
Dmitry Shachnev

On 6/25/13, Shriramana Sharma samj...@gmail.com wrote:
 On Tue, Jun 25, 2013 at 9:09 PM, Scott Kitterman deb...@kitterman.com
 wrote:
 I'll take a look at it.

 Scott thank you very much! Please do so. RIght now I'm having to
 install python-sip-dev for developing Python3 bindings despite the
 presence of a python3-sip-dev which doesn't seem appropriate
 packaging.

 Thanks again!

 --
 Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Shriramana Sharma
On Tue, Jun 25, 2013 at 10:47 PM, Dmitry Shachnev mity...@ubuntu.com wrote:
 Yes, /usr/bin/sip is in python-sip-dev package. Maybe it will make
 sense to move it into a separate package, but I don't see much need in
 that.

Well somehow I don't feel comfortable having to install a Py2 package
to get functionality required for Py3 and apart from whatever Py2 is
inbuilt into my Raring installation, I don't use Py2 for my own
projects at all.

The description of the python3-sip-dev package says that it provides
the code generator whereas this is not true currently and that is the
problem. There has to be a single package that provides the generator
-- (python-sip-bin perhaps?) and both the Py2 and Py3 sip-dev packs
should depend on that.

Now as I see it these packages provide: 1) the generator binary sip
common to all Py versions, 2) the sip.h file for the respective Py
versison, 3) the dh_sip? perl script per the Py version. There has to
be some meaningful dependency heirarchy here which segregates the Py2
requirements from the Py3 ones or at least merge at some package
explicitly labeled -common, just like ipython-notebook and
ipython3-notebook both depend on ipython-notebook-common.

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt