You are not logged in.

#1 2011-05-11 07:03:58

Tondu
Member
From: Göttingen
Registered: 2009-08-11
Posts: 22

python2-pyqt depends on python3

The package python2-pyqt depends on pyqt, which itself requires python3. Is it a normal situation, or should I fill in a bug report ?

Tondu

Offline

#2 2011-05-12 02:37:52

vadmium
Member
Registered: 2010-11-02
Posts: 63

Re: python2-pyqt depends on python3

Sounds relevant to this arch-general “Pyqt packages confusion” thread I saw the other day

Offline

#3 2011-05-12 07:19:48

voidux
Member
Registered: 2010-02-03
Posts: 31

Re: python2-pyqt depends on python3

I changed PKGBUILDs of python2-pyqt and python2-sip when noticed that it requires python3, because there are no applications that uses python3 in my system yet. I will share them here, but use it on your own risk (if you want to, of course), because when an application that uses python3 will appear in your system - it will fail:

pkgbase=pyqt
pkgname='python2-pyqt-pure'
pkgver=4.8.4
pkgrel=1
arch=('i686' 'x86_64')
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
license=('GPL')
pkgdesc="PyQt: A set of Python2 bindings for the Qt toolkit"
depends=('python2-sip' 'dbus-python')
makedepends=('qt' 'dbus-python' 'python2-sip' 'phonon'
             'python-opengl' 'qt-assistant-compat')
optdepends=('phonon: enable audio and video in PyQt applications'
            'python-opengl: enable OpenGL 3D graphics in PyQt applications'
            'qscintilla: QScintilla API'
            'qt-assistant-compat: add PyQt online help in Qt Assistant')
replaces=('python2-qt')
provides=('python2-qt' 'pyqt' 'python2-pyqt')
conflicts=('python2-pyqt')
source=("http://riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-x11-gpl-${pkgver}.tar.gz")
md5sums=('97c5dc1042feb5b3fe20baabad055af1')

build() {
  cd "${srcdir}"

  cd "${srcdir}/PyQt-x11-gpl-${pkgver}"
  python2 configure.py \
    --confirm-license \
    -v /usr/share/sip \
    --qsci-api

  # Thanks Gerardo for the rpath fix
  find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'

  make
}

package() {

  cd "${srcdir}/PyQt-x11-gpl-${pkgver}"
  # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
  make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" instal
}
pkgbase='sip'
pkgname='python2-sip-pure'
pkgver=4.12.2
pkgdesc="A tool that makes it easy to create Python2 bindings for C and C++ libraries"
pkgrel=1
arch=('i686' 'x86_64')
depends=('python2')
makedepends=('python2')
provides=('sip' 'python2-sip' 'python-sip')
conflicts=('python2-sip')
url="http://www.riverbankcomputing.com/software/sip/"
license=('custom:"sip"')
source=("http://www.riverbankcomputing.com/static/Downloads/sip4/${pkgbase}-${pkgver}.tar.gz")
md5sums=('9df80f88e0e4022cdd8a8891c6c38048')

build() {
  cd "${srcdir}"

  cd "${srcdir}/${pkgbase}-${pkgver}"
  python2 configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}"
  make
}

package() {
  cd "${srcdir}/${pkgbase}-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

Offline

#4 2011-05-12 11:39:38

Tondu
Member
From: Göttingen
Registered: 2009-08-11
Posts: 22

Re: python2-pyqt depends on python3

Thanks for this voidux.

That's really too bad that python2-pyqt and pyqt are not splitted (as done for instance for numpy).
According to the thread, it seems hopeless that they modify the PKGBUILD...

Tondu

Offline

Board footer

Powered by FluxBB