-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
26 lines (23 loc) · 776 Bytes
/
setup.py
File metadata and controls
26 lines (23 loc) · 776 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
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import setup
__version__ = "0.0.1"
ext_modules = [
Pybind11Extension(
"SPlib",
["src/protein2.cc", "src/align1.cc", "src/quatfit_theo.cc",\
"src/SPfast.cc", "src/quatfit.cc", "src/SPlib.cpp"],
extra_compile_args=["-std=gnu++11", "-O3", "-shared", "-fopenmp", "-DMP", "-fPIC"],
extra_link_args=["-std=gnu++11", "-O3", "-shared", "-fopenmp", "-DMP", "-fPIC"]
),
]
setup(
name="SPlib",
version=__version__,
author="Thomas Litfin",
author_email="tomlitfin@gmail.com",
description="Python bindings for SPfast",
long_description="",
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
zip_safe=False,
)