-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
68 lines (45 loc) · 1.74 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#! /usr/bin/env python3
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import os
import subprocess
import setuptools
from setuptools.dist import Distribution
# This is a hack around python wheels not including the adaptor.so library.
class BinaryDistribution(Distribution):
def is_pure(self):
return False
def has_ext_modules(self):
return True
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
if subprocess.call(['make', '--always-make','-C', BASE_DIR]) != 0:
raise RuntimeError('Cannot compile lanms in the directory: {}'.format(BASE_DIR))
setuptools.setup(
name='lanms',
version='1.0.2',
description='Locality-Aware Non-Maximum Suppression',
# The project's main homepage.
url='https://github.com/Parquery/lanms',
# Author details
author='argmen ([email protected]) is code author, '
'Dominik Walder ([email protected]) and Marko Ristin ([email protected]) only packaged the code',
author_email='[email protected]',
# Choose your license
license='GNU General Public License v3.0',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python :: 3.5',
],
keywords='locality aware non-maximum suppression',
packages=setuptools.find_packages(exclude=[]),
install_requires=["numpy"],
include_package_data=True,
distclass=BinaryDistribution,
)