Changeset 5f6324e for setup.py


Ignore:
Timestamp:
May 15, 2016, 3:09:56 PM (9 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
89b04e8
Parents:
bce913a
Message:

setup.py: do not fail if numpy is not installed yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    rbce913a r5f6324e  
    22
    33import sys, os.path, glob
    4 import numpy
    54from setuptools import setup, Extension
    65from python.lib.moresetuptools import *
     
    2120include_dirs += [ 'python/ext' ]
    2221include_dirs += [ output_path ] # aubio-generated.h
    23 include_dirs += [ numpy.get_include() ]
     22try:
     23    import numpy
     24    include_dirs += [ numpy.get_include() ]
     25except ImportError:
     26    pass
    2427
    2528if sys.platform.startswith('darwin'):
Note: See TracChangeset for help on using the changeset viewer.