-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
52 lines (48 loc) · 1.64 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
from setuptools import setup, Extension, find_namespace_packages
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"],
include_dirs=[include_dir], # Use the portable include directory
)
]
setup(
name='mstmap',
version='1.1.4',
author='Amirsadra Mohseni',
author_email='amohs002@ucr.edu',
description='A Python library for genetic mapping',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
ext_modules=cythonize(extensions),
zip_safe=False,
python_requires='>=3.7',
include_package_data=True,
license="Apache License 2.0", # Specify the license name
license_files=["LICENSE"],
packages=find_namespace_packages(include=["pandas*"]),
install_requires=[
"numpy",
"pandas",
"cython",
"biopython",
"reportlab"
],
)