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

Skip to content

Commit 3aa4c87

Browse files
committed
Cleaned up setup.py. Removed references to Python 2.2, distutils.
svn path=/trunk/matplotlib/; revision=3536
1 parent 9064d16 commit 3aa4c87

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

setup.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
"""
2-
Note! If you are building for python2.2, you must comment out the
3-
py_modules line below and manually copy lib/pylab.py to
4-
site-packages/pylab.py
5-
62
You will need to have freetype, libpng and zlib installed to compile
73
matplotlib, inlcuding the *-devel versions of these libraries if you
84
are using a package manager like RPM or debian.
@@ -62,8 +58,6 @@
6258
import sys
6359
major, minor1, minor2, s, tmp = sys.version_info
6460

65-
if major==2 and minor1==2:
66-
print >> sys.stderr, "***\n\nWARNING, see build info for python2.2 in the header of setup.py\n\n***"
6761
if major==2 and minor1<=3:
6862
# setuptools monkeypatches distutils.core.Distribution to support
6963
# package_data
@@ -78,12 +72,13 @@
7872
directory.""")
7973

8074
import glob
81-
from distutils.core import Extension, setup
75+
#from distutils.core import Extension, setup
76+
from setuptools import setup
8277
from setupext import build_agg, build_gtkagg, build_tkagg, build_wxagg,\
8378
build_ft2font, build_image, build_windowing, build_transforms, \
8479
build_contour, build_nxutils, build_enthought, build_swigagg, build_gdk, \
8580
build_subprocess, build_ttconv
86-
import distutils.sysconfig
81+
#import distutils.sysconfig
8782

8883
for line in file('lib/matplotlib/__init__.py').readlines():
8984
if line[:11] == '__version__':

0 commit comments

Comments
 (0)