-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
36 lines (33 loc) · 1.61 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import os, sys
import numpy
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
import cython_ipp
# I need to import a module I'm about to install. How naughty is this?
sys.path.insert(0, os.path.abspath(os.path.join('motmot','FastImage')))
import util as FastImage_util
ipp_root = os.environ['IPPROOT']
vals = FastImage_util.get_build_info(ipp_static=True, ipp_root=ipp_root)
setup(name="motmot.FastImage",
author="Andrew Straw",
author_email="strawman@astraw.com",
description="Pythonic API for a subset of the Intel "\
"Integrated Performance Primitives (Intel IPP) library",
url='http://code.astraw.com/projects/motmot',
license="BSD",
version='0.7.0', # also in motmot/FastImage/__init__.py
namespace_packages=['motmot'],
packages = find_packages(),
include_package_data=True,
zip_safe= False,
ext_modules=cythonize([Extension(name="motmot.FastImage.FastImage",
sources=['motmot/FastImage/FastImage.pyx'],
include_dirs=vals['ipp_include_dirs']+['motmot/FastImage']+[numpy.get_include()],
library_dirs=vals['ipp_library_dirs'],
libraries=vals['ipp_libraries'],
define_macros=vals['ipp_define_macros'],
extra_link_args=vals['extra_link_args'],
extra_objects=vals['ipp_extra_objects'],
),
]),
)