-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (26 loc) · 744 Bytes
/
setup.py
File metadata and controls
30 lines (26 loc) · 744 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
29
30
import os
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import setup
os.system("bash scripts/setup.sh")
with open("version.txt") as f:
__version__ = f.read().strip()
ext_modules = [
Pybind11Extension(
"almo",
["build/pyalmo.cpp"],
cxx_std=20,
define_macros=[("VERSION_INFO", "\"" + __version__ + "\"")],
),
]
long_description = open("README.md").read()
setup(
name="almo",
author="abap34, ebi-fly13, noya2",
url="https://github.com/abap34/ALMO",
long_description_content_type="text/markdown",
long_description=long_description,
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
zip_safe=False,
version=__version__,
)