projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
bce913a
)
setup.py: do not fail if numpy is not installed yet
author
Paul Brossier
<piem@piem.org>
Sun, 15 May 2016 13:09:56 +0000
(15:09 +0200)
committer
Paul Brossier
<piem@piem.org>
Sun, 15 May 2016 13:09:56 +0000
(15:09 +0200)
setup.py
patch
|
blob
|
history
diff --git
a/setup.py
b/setup.py
index
9535a3b
..
b46e04e
100755
(executable)
--- a/
setup.py
+++ b/
setup.py
@@
-1,7
+1,6
@@
#! /usr/bin/env python
import sys, os.path, glob
#! /usr/bin/env python
import sys, os.path, glob
-import numpy
from setuptools import setup, Extension
from python.lib.moresetuptools import *
# function to generate gen/*.{c,h}
from setuptools import setup, Extension
from python.lib.moresetuptools import *
# function to generate gen/*.{c,h}
@@
-20,7
+19,11
@@
extra_link_args = []
include_dirs += [ 'python/ext' ]
include_dirs += [ output_path ] # aubio-generated.h
include_dirs += [ 'python/ext' ]
include_dirs += [ output_path ] # aubio-generated.h
-include_dirs += [ numpy.get_include() ]
+try:
+ import numpy
+ include_dirs += [ numpy.get_include() ]
+except ImportError:
+ pass
if sys.platform.startswith('darwin'):
extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']
if sys.platform.startswith('darwin'):
extra_link_args += ['-framework','CoreFoundation', '-framework','AudioToolbox']