-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
52 lines (42 loc) · 1.42 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
#!/bin/python
#-----------------------------------------------------------------------------
# File Name : setup.py
# Author: Emre Neftci
#
# Creation Date : Thu 08 Dec 2016 05:41:37 PM PST
# Last Modified : Sun 29 Jan 2017 07:24:26 PM PST
#
# Copyright : (c) UC Regents, Emre Neftci
# Licence : GPLv2
#-----------------------------------------------------------------------------
from setuptools import setup
from setuptools.command.install import install as SetupInstall
import subprocess
class MyInstall(SetupInstall):
def run(self):
subprocess.call('make')
SetupInstall.run(self)
class MakeClean(SetupInstall):
def run(self):
subprocess.call(['make', 'cleanall'])
def readme():
with open('README.md') as f:
return f.read()
setup(name='pyNSATlib',
version='0.1',
description='Python bindings for c_nsat',
url='https://github.com/nmi-lab-ucsd/HiAER-NSAT',
author='Emre Neftci, Georgios Detorakis, Sadique Sheik',
author_email='[email protected]',
license='GPLv2',
packages=['pyNSATlib'],
include_package_data=True,
install_requires=['numpy',
'pyNCSre',
'igraph',
'matplotlib'],
dependency_links=[
'https://github.com/inincs/pyNCS/tarball/master#egg=package-1.0'],
zip_safe=False,
cmdclass={'install': MyInstall,
'clean': MakeClean})