forked from LARG/HFO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (40 loc) · 1.59 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
from distutils.core import setup, Extension
import os.path, sys
hfo_c_lib = 'hfo/libhfo_c.so'
if not os.path.isfile(hfo_c_lib):
print(('ERROR: Unable to find required library: %s.'%(hfo_c_lib)))
sys.exit()
module1 = Extension('hfo.hfo_c_wrapper',
libraries = ['hfo_c'],
include_dirs = ['src'],
library_dirs = ['hfo'],
extra_compile_args=['-D__STDC_CONSTANT_MACROS'],
sources=['hfo/hfo_c_wrapper.cpp'])
setup(name = 'hfo',
version='0.1.5',
author='Matthew Hausknecht',
author_email='[email protected]',
description='Half Field Offense in 2D RoboCup Soccer.',
license='MIT',
ext_modules = [module1],
keywords=('Robocup '
'Half-field-offense '
),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent', # except for shell scripts
'Programming Language :: C++',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.2', # not tested
'Programming Language :: Python :: 3.3', # not tested
'Programming Language :: Python :: 3.4', # not tested
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6', # not tested
],
requires=['numpy'],
# packages=find_packages(),
packages=['hfo'],
package_dir={'hfo': 'hfo'},
package_data={'hfo': ['libhfo_c.so']})