-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (37 loc) · 1.33 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
# Available at setup time due to pyproject.toml
from glob import glob
from pybind11.setup_helpers import Pybind11Extension, build_ext
from setuptools import setup
# Read version from wlplan/__version__.py file
exec(open("wlplan/__version__.py").read())
# Sort input source files if you glob sources to ensure bit-for-bit
# reproducible builds (https://github.com/pybind/python_example/pull/53)
files = [glob("src/*.cpp"), glob("src/**/*.cpp")]
ext_modules = [
Pybind11Extension(
"_wlplan",
sorted([f for file_group in files for f in file_group]),
# Example: passing in the version to the compiled code
define_macros=[("WLPLAN_VERSION", __version__)],
),
]
setup(
name="wlplan",
version=__version__,
author="Dillon Z. Chen",
author_email="dillon.chen1@gmail.com",
description="WLPlan: Relational Features for PDDL Planning",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
packages=["wlplan", "_wlplan"],
package_data={"_wlplan": ["py.typed", "*.pyi", "**/*.pyi"]},
ext_modules=ext_modules,
cmdclass={"build_ext": build_ext},
project_urls={"GitHub": "https://github.com/DillonZChen/wlplan"},
license="MIT License",
python_requires=">=3.10",
install_requires=[
"networkx>=3.0",
"pddl==0.4.1",
],
)