-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (24 loc) · 785 Bytes
/
setup.py
File metadata and controls
28 lines (24 loc) · 785 Bytes
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
from distutils.core import setup, Extension
from os import environ, path
if 'TSILDIR' not in environ:
print('Environment variable $TSILDIR not set.\nPoint it to the location where TSIL has been built')
exit(2)
if not path.isdir(environ['TSILDIR']):
print('$TSILDIR was not set to a valid dir.')
exit(2)
if not path.isfile(path.join(environ['TSILDIR'],'libtsil.a')):
print('TSIL was not built.')
exit(2)
setup(
name = 'pyTSIL',
version = '1.0',
ext_modules = [
Extension(
'TSIL',
sources = ['pyTSIL.c'],
libraries = ['tsil'],
library_dirs = [environ['TSILDIR']],
include_dirs = [environ['TSILDIR']]
)
],
)