forked from Tubbz-alt/feedforward_closedloop_learning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·51 lines (43 loc) · 1.72 KB
/
setup.py
File metadata and controls
executable file
·51 lines (43 loc) · 1.72 KB
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
#!/usr/bin/env python3
"""
setup.py file for feedforward_closedloop_learning
"""
from setuptools import setup
from setuptools import Extension
import os
from sys import platform
import numpy
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
if platform == "linux" or platform == "linux2" or platform == "darwin":
fcl_module = Extension('_feedforward_closedloop_learning',
sources=['fcl.i','fcl.cpp','fcl_util.cpp','fcl/bandpass.cpp','fcl/layer.cpp','fcl/neuron.cpp'],
extra_compile_args=['-std=c++11','-O3'],
include_dirs=[numpy.get_include()],
swig_opts=['-c++','-py3']
)
elif platform == "win32":
fcl_module = Extension('_feedforward_closedloop_learning',
sources=['fcl.i','fcl.cpp','fcl_util.cpp','fcl/bandpass.cpp','fcl/layer.cpp','fcl/neuron.cpp'],
extra_compile_args=['-D_CRT_SECURE_NO_WARNINGS'],
include_dirs=[numpy.get_include()],
swig_opts=['-c++','-py3']
)
setup (name = 'feedforward_closedloop_learning',
version = '2.2.1',
author = "Bernd Porr, Paul Miller",
author_email = "bernd@glasgowneuro.tech",
url = "https://github.com/glasgowneuro/feedforward_closedloop_learning",
description = 'Feedforward Closedloop Learning (FCL)',
long_description=read('README_py.rst'),
ext_modules = [fcl_module],
py_modules = ["feedforward_closedloop_learning"],
license='GPL 3.0',
install_requires=[
'numpy',
],
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python'
]
)