FS#16319 - [python-matplotlib] conflicts with nearly all files in python-pytz

Attached to Project: Community Packages
Opened by Xyne (Xyne) - Tuesday, 22 September 2009, 22:33 GMT
Last edited by Stefan Husmann (stefanhusmann) - Friday, 25 September 2009, 07:58 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Stefan Husmann (stefanhusmann)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

The latest release of python-matplotlib conflicts with nearly all files owned by python-pytz.

On my system, python-pytz is installed only as a dependency of python-matplotlib. It seems that python-matplotlib may have subsumed python-pytz but I can't test this right now. Perhaps "python-pytz" can be moved from "depends" to "provides" in python-matplotlib.

A thread was also posted on the forum: http://bbs.archlinux.org/viewtopic.php?pid=624120

Thanks.
This task depends upon

Closed by  Stefan Husmann (stefanhusmann)
Friday, 25 September 2009, 07:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  Next upstream release is out.
Comment by David Olson (beretta) - Wednesday, 23 September 2009, 02:54 GMT
Conflict is with files from python-dateutil and python-pytz.
Comment by Gergely (imrehg) - Wednesday, 23 September 2009, 07:23 GMT
in addition to this, the PKGBUILD does not build:
wrong md5sum and referencing to a file (setup.cfg) that does not exists

fixing these and package builds with no conflicts... I wonder how was the original package built then?
Comment by Sebastien Binet (bins) - Wednesday, 23 September 2009, 09:33 GMT
FWIW, the following PKGBUILD works for me (I prefer Qt4Agg as a backend, but you can of course modify that part ;) )

## PKGBUILD ##
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
pkgname=python-matplotlib
pkgver=0.99.1
pkgrel=2
pkgdesc="A python plotting library, making publication quality plots"
arch=('i686' 'x86_64')
url="http://matplotlib.sourceforge.net/"
backup=(usr/lib/python2.6/site-packages/matplotlib/mpl-data/matplotlibrc)
depends=('python-numpy' 'python-pytz' 'python-dateutil')
optdepends=('tk: for the TkAgg backend'
'pygtk: for use with the GTK or GTKAgg backend'
'wxpython: for use with the WXAgg backend')
provides=('matplotlib')
source=(license \
"http://downloads.sourceforge.net/matplotlib/matplotlib-$pkgver.tar.gz")
md5sums=('ad0faab114032cc0280f96c9ac50b071' 'eaa6edd59126cb91967e8e1547f99600')
license=('custom')

build() {
cd $srcdir/matplotlib-$pkgver

/bin/cat >| setup.cfg <<EOF
[provide_packages]
## Date/timezone support:
pytz = auto
dateutil = auto

[gui_support]
qt4agg = auto
tkagg = auto
wxagg = auto
macosx = False

[rc_options]
backend = Qt4Agg
# the following is not needed anymore
#numerix = numpy
EOF

python setup.py build || return 1
python setup.py build || return 1
python setup.py install --root $pkgdir --prefix=/usr || return 1

rm -rf $pkgdir/usr/lib/python2.6/site-packages/configobj.py* || return 1
install -Dm644 $srcdir/license \
$pkgdir/usr/share/licenses/$pkgname/license || return 1
}
## EOF ##
Comment by solsTiCe (zebul666) - Wednesday, 23 September 2009, 13:03 GMT
how the original package could have been build with 2 blocking errors in the PKGBUILD !
- wrong md5sum
- trying to change a missing file

WTF !!!
Comment by Martin Schmidt (Blind) - Thursday, 24 September 2009, 23:13 GMT
python-matplotlib-0.99.1-2 did not solve the conflicts for me. Did I misunderstand something? Or do I need to force the upgrade?

Loading...