forked from IBMSpectrumComputing/lsf-python-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·41 lines (39 loc) · 1.77 KB
/
setup.py
File metadata and controls
executable file
·41 lines (39 loc) · 1.77 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
# !/usr/bin/env python
#
# (C) Copyright IBM Corporation 2013
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the Eclipse Public License.
#
import os
import sys
from setuptools import setup, Extension
includeDir = os.path.join(sys.prefix, 'include')
includeDirs = [i for i in (os.path.join(includeDir, i) for i in os.listdir(includeDir)) if os.path.isdir(i)] + [includeDir]
setup(name='pythonlsf',
version='1.0.1',
description='Python binding for Platform LSF APIs',
license='LGPL',
keywords='LSF,Grid,Cluster,HPC',
url='http://www.platform.com',
ext_package='pythonlsf',
ext_modules=[Extension('_lsf', ['pythonlsf/lsf.i'],
include_dirs=includeDirs,
library_dirs=[os.environ['LSF_LIBDIR']],
swig_opts=['-I' + os.environ['LSF_LIBDIR'] + '/../../include/lsf/'],
extra_compile_args=['-m64', '-I' + os.environ['LSF_LIBDIR'] + '/../../include/lsf/'],
extra_link_args=['-m64'],
libraries=['c', 'nsl', 'lsbstream', 'lsf', 'bat', 'rt',
'fairshareadjust'])],
py_modules=['pythonlsf.lsf'],
classifiers=["Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: Eclipse Public License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Topic :: System :: Distributed Computing",
"Topic :: Utilities",
],
)