-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
66 lines (58 loc) · 1.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
import sys
from setuptools import Extension, setup
PACKAGE_DIR = "pepfrag"
extra_compiler_args = []
extra_link_args = []
if sys.platform != "win32":
extra_compiler_args.append("-std=c++14")
extra_link_args.append("-lstdc++")
if sys.platform == "win32":
extra_compiler_args.append("/utf-8")
# Extract README.md
readme = os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md")
with open(readme, encoding='utf-8') as fh:
long_description = fh.read()
cpepfrag = Extension(
"cpepfrag",
sources=[
os.path.join(PACKAGE_DIR, "iongenerator.cpp"),
os.path.join(PACKAGE_DIR, "converters.cpp"),
os.path.join(PACKAGE_DIR, "mass.cpp"),
os.path.join(PACKAGE_DIR, "cpepfrag.cpp"),
],
language="c++11",
extra_compile_args=extra_compiler_args,
extra_link_args=extra_link_args
)
setup(
name="pepfrag",
version="0.4.1",
packages=[
"pepfrag",
],
license="MIT",
description="A library for peptide fragment ion generation",
author="Daniel Spencer",
author_email="danielspencer305@hotmail.co.uk",
url="https://github.com/ikcgroup/pepfrag",
keywords=[
"PEPTIDE",
"MASS SPECTROMETRY",
"PROTEOMICS"
],
ext_modules=[
cpepfrag,
],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"
],
long_description_content_type='text/markdown',
long_description=long_description,
)