Hi,
I wanted to install 0.84 on gentoo and get following error:
<snip>
muppets portage # emerge -av matplotlib
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild U ] dev-python/matplotlib-0.84 [0.83.2] -doc +gtk 0 kB [1]
Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/ebuilds
[2] /usr/local/gentoo-de
Do you want me to merge these packages? [Yes/No]
emerge (1 of 1) dev-python/matplotlib-0.84 to /
md5 files matplotlib-0.83.2.ebuild
md5 files matplotlib-0.84.ebuild
md5 files files/digest-matplotlib-0.84
md5 files files/digest-matplotlib-0.83.2
md5 src_uri matplotlib-0.84.tar.gz
Unpacking source...
Unpacking matplotlib-0.84.tar.gz to /var/tmp/portage/matplotlib-0.84/work
Source unpacked.
File "setup.py", line 153
try: import pytz
^
IndentationError: unindent does not match any outer indentation level
!!! ERROR: dev-python/matplotlib-0.84 failed.
!!! Function distutils_src_compile, Line 35, Exitcode 1
!!! compilation failed
!!! If you need support, post the topmost build error, NOT this status message.
<snip>
In /var/tmp/portage/matplotlib-0.84/work/matplotlib-0.84/setup.py the area around line 153 looks like:
路路路
____________________________________________________
try: import datetime
except ImportError: havedate = False
else: havedate = True
if havedate: # dates require python23 datetime
# only install pytz and dateutil if the user hasn't got them
def add_pytz():
packages.append('pytz')
# install pytz subdirs
for dirpath, dirname, filenames in os.walk(os.path.join('lib', 'pytz','zoneinfo')):
packages.append('/'.join(dirpath.split(os.sep)[1:]))
def add_dateutil():
packages.append('dateutil')
if sys.platform=='win32':
# always add these to the win32 installer
add_dateutil()
try: import pytz <<<<<<<<<<<<<<<<<<<<<<<< line 153
except ImportError:
add_pytz()
build_swigagg(ext_modules, packages)
build_transforms(ext_modules, packages, NUMERIX)
build_enthought(ext_modules, packages)
_______________________________________________________________
Any hints ?
Thx
Werner