forked from taehoonlee/tensornets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
26 lines (23 loc) · 1011 Bytes
/
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
import numpy
from sys import platform
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
ext = 'tensornets.references.darkflow_utils'
ext_modules = [Extension("%s.%s" % (ext, n),
sources=["%s/%s.pyx" % (ext.replace('.', '/'), n)],
libraries=[] if platform.startswith("win") else ['m'],
include_dirs=[numpy.get_include()])
for n in ['nms', 'get_boxes']]
setup(name='tensornets',
version='0.3.6',
description='high level network definitions in tensorflow',
author='Taehoon Lee',
author_email='[email protected]',
url='https://github.com/taehoonlee/tensornets',
download_url='https://github.com/taehoonlee/tensornets/tarball/0.3.6',
license='MIT',
packages=['tensornets', 'tensornets.datasets',
'tensornets.references', ext],
include_package_data=True,
ext_modules=cythonize(ext_modules))