-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (31 loc) · 927 Bytes
/
setup.py
File metadata and controls
34 lines (31 loc) · 927 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
31
32
33
34
# @Created Date: 2025-01-07 04:05:19 pm
# @Filename: setup.py
# @Email: zhuzefeng@stu.pku.edu.cn
# @Author: Zefeng Zhu
# @Last Modified: 2025-01-14 12:01:25 pm
from setuptools import setup, Extension, find_namespace_packages
try:
import pybind11
ext_modules = [
Extension(
"pykorp.c_korp",
sources=["pykorp/interface.cpp"],
include_dirs=[pybind11.get_include(), "pykorp/include"],
language="c++",
extra_compile_args=["-std=c++11"],
),
]
except Exception:
ext_modules = []
setup(
name="pykorp",
version="1.0.0",
description="Python/Pytorch bindings for KORP.",
ext_modules=ext_modules,
license="MIT",
author_email="zhuzefeng@stu.pku.edu.cn",
include_package_data=True,
packages=find_namespace_packages(),
install_requires=["gemmi", "roma"],
extras_require={"ckorp": ["numpy", "pybind11"]},
)