-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
89 lines (83 loc) · 2.89 KB
/
setup.py
File metadata and controls
89 lines (83 loc) · 2.89 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import os
from Cython.Build import cythonize
from setuptools import Extension, find_packages, setup
base_dir = os.path.abspath(os.path.dirname(__file__))
# We need headers for the Cython compilation
bindings_dir = os.path.abspath(os.path.join(base_dir, "../"))
reapi_c_dir = os.path.abspath(os.path.join(base_dir, "../../c"))
here = os.path.dirname(os.path.abspath(__file__))
root_dir = here
for _ in range(4):
root_dir = os.path.dirname(root_dir)
readme = os.path.join(here, "README.md")
try:
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
except FileNotFoundError:
long_description = "Python bindings for the Flux Scheduler (flux-sched)."
extensions = [
Extension(
"flux_sched.reapi_cli",
sources=["flux_sched/reapi_cli.pyx"],
library_dirs=[bindings_dir],
include_dirs=[reapi_c_dir, bindings_dir, root_dir],
libraries=["reapi_cli", "flux-core"],
language="c++",
extra_compile_args=["-std=c++11"],
),
Extension(
"flux_sched.reapi_module",
sources=["flux_sched/reapi_module.pyx"],
library_dirs=[bindings_dir],
include_dirs=[reapi_c_dir, bindings_dir, root_dir],
libraries=["reapi_module", "flux-core"],
language="c++",
extra_compile_args=["-std=c++11"],
),
]
setup(
name="flux-sched",
version="0.0.0",
packages=find_packages(),
ext_modules=cythonize(extensions),
install_requires=[],
extras_require={
"reapi-module": ["flux-python"],
},
description="Python bindings for the Flux resource manager framework scheduler",
long_description=long_description,
long_description_content_type="text/markdown",
author="Flux Framework Developers",
author_email="flux-discuss@llnl.gov",
maintainer="Vanessa Sochat",
url="https://github.com/flux-framework/flux-sched",
project_urls={
"Documentation": "https://flux-framework.readthedocs.io/",
"Source": "https://github.com/flux-framework/flux-sched",
"Tracker": "https://github.com/flux-framework/flux-sched/issues",
},
zip_safe=False,
classifiers=[
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: C++",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Unix",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords=[
"hpc",
"flux",
"fluxion",
"scheduler",
"resource-manager",
"distributed-computing",
"graph-scheduling",
],
)