forked from AmirUCR/MSTmap-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (37 loc) · 1.37 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
from setuptools import setup, Extension
from Cython.Build import cythonize
import os
# Get the directory containing the setup.py script
current_dir = os.path.abspath(os.path.dirname(__file__))
# Set the include directory relative to the setup.py script's location
include_dir = os.path.join(current_dir, 'src')
# Cython extension module
extensions = [
Extension(
"mstmap",
sources=[
os.path.join("src", "mstmap.pyx"), # Path to the .pyx file
os.path.join("src", "mstmap_main.cpp"), # Path to the .cpp file
os.path.join("src", "genetic_map_DH.cpp"),
os.path.join("src", "genetic_map_RIL.cpp"),
os.path.join("src", "linkage_group_DH.cpp"),
os.path.join("src", "linkage_group_RIL.cpp"),
os.path.join("src", "MSTOpt.cpp")
],
language="c++",
extra_compile_args=["-std=c++11"], # Adjust C++ standard if necessary
include_dirs=[include_dir], # Use the portable include directory
)
]
setup(
name='mstmap',
version='1.1.1',
author='Amirsadra Mohseni',
author_email='amohs002@ucr.edu',
description='A C++ library for genetic mapping with Cython interface',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
ext_modules=cythonize(extensions),
zip_safe=False,
python_requires='>=3.7',
)