Showing posts with label python 2. Show all posts
Showing posts with label python 2. Show all posts

Sunday, November 21, 2010

Edited PKGBUILD for Aarddict after setuptools not found error

Again a PKGBUILD had to be adapted to be able to compile a python packet: error message:
File "setup.py", line 4, in from setuptools import setup, find_packages ImportError: No module named setuptools


So I had to adapt the pkgbuild, becoming this (thick letters were changed):

# Contributor: Jeffery MacEachern

pkgname=aarddict
pkgver=0.9.1
pkgrel=1
pkgdesc="Aard Dictionary is a multiplatform dictionary and offline Wikipedia reader."
arch=(any)
url="http://aarddict.org/"
license=(GPL)
depends=('python2' 'python-pyicu' 'python-simplejson' 'hicolor-icon-theme' 'setuptools' 'pyqt')
makedepends=('setuptools')
install=aarddict.install
source=(http://bitbucket.org/itkach/${pkgname}/get/${pkgver}.zip aarddict.install)
md5sums=('41224733330d98b61818391e34311802'
'4d14628e16252af7ddf562ad19e3bcb4')

build() {
cd $srcdir/$pkgname
python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1
}

Install with: makepkg -sci PKGBUILD

Blog Archive