Changeset 10352:5b8a22072fef in orange


Ignore:
Timestamp:
02/22/12 13:09:04 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Message:

Do not depend on numpy in setup.py since it might not be installed yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r10351 r10352  
    4343from distutils.sysconfig import get_python_inc, get_config_var 
    4444 
    45 import numpy 
    46 numpy_include_dir = numpy.get_include() 
     45try: 
     46    import numpy 
     47    numpy_include_dir = numpy.get_include() 
     48except ImportError: 
     49    # When setup.py is first run to install orange, numpy can still be missing 
     50    pass 
     51    numpy_include_dir = None 
    4752python_include_dir = get_python_inc(plat_specific=1) 
    4853 
Note: See TracChangeset for help on using the changeset viewer.