|
1 | 1 | """ |
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 | | -
|
6 | 2 | You will need to have freetype, libpng and zlib installed to compile |
7 | 3 | matplotlib, inlcuding the *-devel versions of these libraries if you |
8 | 4 | are using a package manager like RPM or debian. |
|
62 | 58 | import sys |
63 | 59 | major, minor1, minor2, s, tmp = sys.version_info |
64 | 60 |
|
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***" |
67 | 61 | if major==2 and minor1<=3: |
68 | 62 | # setuptools monkeypatches distutils.core.Distribution to support |
69 | 63 | # package_data |
|
78 | 72 | directory.""") |
79 | 73 |
|
80 | 74 | import glob |
81 | | -from distutils.core import Extension, setup |
| 75 | +#from distutils.core import Extension, setup |
| 76 | +from setuptools import setup |
82 | 77 | from setupext import build_agg, build_gtkagg, build_tkagg, build_wxagg,\ |
83 | 78 | build_ft2font, build_image, build_windowing, build_transforms, \ |
84 | 79 | build_contour, build_nxutils, build_enthought, build_swigagg, build_gdk, \ |
85 | 80 | build_subprocess, build_ttconv |
86 | | -import distutils.sysconfig |
| 81 | +#import distutils.sysconfig |
87 | 82 |
|
88 | 83 | for line in file('lib/matplotlib/__init__.py').readlines(): |
89 | 84 | if line[:11] == '__version__': |
|
0 commit comments