Lines 231-246
Link Here
|
231 |
data_files.append((DEFS_DIR, ('pangocairo.defs',))) |
231 |
data_files.append((DEFS_DIR, ('pangocairo.defs',))) |
232 |
GLOBAL_MACROS.append(('HAVE_PYCAIRO',1)) |
232 |
GLOBAL_MACROS.append(('HAVE_PYCAIRO',1)) |
233 |
if gtk.can_build(): |
233 |
if gtk.can_build(): |
234 |
if '--disable-numeric' in sys.argv: |
234 |
if '--disable-numpy' in sys.argv: |
235 |
sys.argv.remove('--disable-numeric') |
235 |
sys.argv.remove('--disable-numpy') |
236 |
else: |
236 |
else: |
237 |
try: |
237 |
try: |
238 |
import Numeric |
238 |
import numpy |
239 |
Numeric # pyflakes |
239 |
numpy # pyflakes |
240 |
GLOBAL_MACROS.append(('HAVE_NUMPY', 1)) |
240 |
GLOBAL_MACROS.append(('HAVE_NUMPY', 1)) |
241 |
except ImportError: |
241 |
except ImportError: |
242 |
print ('* Numeric module could not be found, ' |
242 |
print ('* numpy module could not be found, ' |
243 |
'will build without Numeric support.') |
243 |
'will build without NumPy support.') |
244 |
ext_modules.append(gtk) |
244 |
ext_modules.append(gtk) |
245 |
data_files.append((os.path.join(INCLUDE_DIR, 'pygtk'), ('gtk/pygtk.h',))) |
245 |
data_files.append((os.path.join(INCLUDE_DIR, 'pygtk'), ('gtk/pygtk.h',))) |
246 |
data_files.append((DEFS_DIR, ('gtk/gdk.defs', 'gtk/gdk-types.defs', |
246 |
data_files.append((DEFS_DIR, ('gtk/gdk.defs', 'gtk/gdk-types.defs', |