-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
51 lines (41 loc) · 1.38 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
from setuptools import setup, find_packages
from distutils.core import Extension
from shutil import copyfile
import os
# before building the wheel, CMake must be run manually from cpp/build;
import sys
sys.path.insert(0, "cpyMSpec")
from utils import shared_lib, VERSION
rtd = os.environ.get('READTHEDOCS', None) == 'True'
shared_lib_filename = shared_lib('ms_cffi')
extra_files = {
os.path.join('ims-cpp', 'cffi', 'ims.h'):
os.path.join('cpyMSpec', 'ims.h')
}
if not rtd:
extra_files.update({
os.path.join('ims-cpp', 'build', shared_lib_filename):
os.path.join('cpyMSpec', shared_lib_filename)
})
for src, dst in extra_files.items():
copyfile(src, dst)
setup(
name='cpyMSpec',
version=VERSION,
author='Artem Tarasov',
author_email='[email protected]',
url='https://github.com/alexandrovteam/cpyMSpec',
license='Apache 2.0',
description='isotope pattern calculator for small molecules',
packages=find_packages(where='.'),
package_data={'cpyMSpec': [shared_lib_filename, 'ims.h']},
setup_requires=['wheel>=0.27.0'],
install_requires=['cffi>=1.7'],
ext_modules=[],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Topic :: Scientific/Engineering :: Bio-Informatics',
]
)