Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bc7786

Browse files
committed
updated README for setuptools requirement
svn path=/trunk/matplotlib/; revision=3040
1 parent 94d6daa commit 8bc7786

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

README

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ INTRODUCTION:
2626

2727
REQUIREMENTS:
2828

29-
python 2.2+, and Numeric-22+ or numarray. Other requirements are backend
30-
dependent. See http://matplotlib.sourceforge.net/backends.html
29+
python 2.3+, and Numeric, numarray or numpy (recommended). Other
30+
requirements are backend dependent. See
31+
http://matplotlib.sourceforge.net/backends.html. If you are using
32+
python2.3, you'll also need to install setuptools; just download
33+
http://peak.telecommunity.com/dist/ez_setup.py and run it.
3134

3235
INSTALL
3336

setup.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,15 @@
6363
if major==2 and minor1==2:
6464
print >> sys.stderr, "***\n\nWARNING, see build info for python2.2 in the header of setup.py\n\n***"
6565
if major==2 and minor1<=3:
66-
try: import setuptools # setuptools monkeypatches distutils.core.Distribution to support package_data
66+
# setuptools monkeypatches distutils.core.Distribution to support
67+
# package_data
68+
try: import setuptools
6769
except ImportError:
68-
raise SystemExit('matplotlib requires setup tools for installation. Please download http://peak.telecommunity.com/dist/ez_setup.py and run it (as su if you are doing a systemwide install) to install the proper version of setuptools for your system')
70+
raise SystemExit("""\
71+
matplotlib requires setuptools for installation. Please download
72+
http://peak.telecommunity.com/dist/ez_setup.py and run it (as su if
73+
you are doing a system wide install) to install the proper version of
74+
setuptools for your system""")
6975

7076
import glob
7177
from distutils.core import Extension, setup

0 commit comments

Comments
 (0)