|
20 | 20 | import sys |
21 | 21 | major, minor1, minor2, s, tmp = sys.version_info |
22 | 22 |
|
23 | | -if major==2 and minor1<=3: |
24 | | - # setuptools monkeypatches distutils.core.Distribution to support |
25 | | - # package_data |
26 | | - try: import setuptools |
27 | | - except ImportError: |
28 | | - raise SystemExit("""\ |
29 | | -matplotlib requires setuptools for installation with python-2.3. Visit: |
30 | | -http://cheeseshop.python.org/pypi/setuptools |
31 | | -for installation instructions for the proper version of setuptools for your |
32 | | -system. If this is your first time upgrading matplotlib with the new |
33 | | -setuptools requirement, you must delete the old matplotlib install |
34 | | -directory.""") |
35 | | - |
36 | | -if major==2 and minor1<3 or major<2: |
37 | | - raise SystemExit("""matplotlib requires Python 2.3 or later.""") |
| 23 | +if major==2 and minor1<4 or major<2: |
| 24 | + raise SystemExit("""matplotlib requires Python 2.4 or later.""") |
38 | 25 |
|
39 | 26 | import glob |
40 | 27 | from distutils.core import setup |
41 | 28 | from setupext import build_agg, build_gtkagg, build_tkagg, build_wxagg,\ |
42 | 29 | build_ft2font, build_image, build_windowing, build_path, \ |
43 | 30 | build_contour, build_nxutils, build_traits, build_gdk, \ |
44 | | - build_subprocess, build_ttconv, print_line, print_status, print_message, \ |
| 31 | + build_ttconv, print_line, print_status, print_message, \ |
45 | 32 | print_raw, check_for_freetype, check_for_libpng, check_for_gtk, \ |
46 | 33 | check_for_tk, check_for_wx, check_for_numpy, check_for_qt, check_for_qt4, \ |
47 | 34 | check_for_cairo, check_provide_traits, check_provide_pytz, \ |
|
100 | 87 | ]} |
101 | 88 |
|
102 | 89 | if not check_for_numpy(): |
103 | | - sys.exit() |
104 | | - |
105 | | -try: import subprocess |
106 | | -except ImportError: havesubprocess = False |
107 | | -else: havesubprocess = True |
108 | | - |
109 | | -if havesubprocess and sys.version < '2.4': |
110 | | - # Python didn't come with subprocess, so let's make sure it's |
111 | | - # not in some Python egg (e.g. an older version of matplotlib) |
112 | | - # that may get removed. |
113 | | - subprocess_dir = os.path.dirname(subprocess.__file__) |
114 | | - if subprocess_dir.endswith('.egg/subprocess'): |
115 | | - havesubprocess = False |
116 | | - |
117 | | -if not havesubprocess: |
118 | | - packages.append('subprocess') |
119 | | - if sys.platform == 'win32': |
120 | | - build_subprocess(ext_modules, packages) |
| 90 | + sys.exit(1) |
121 | 91 |
|
122 | 92 | if not check_for_freetype(): |
123 | 93 | sys.exit(1) |
|
0 commit comments