2021-10-22 02:03:19 +02:00
|
|
|
from setuptools import setup
|
2020-09-24 17:35:25 +02:00
|
|
|
|
2021-10-22 02:03:19 +02:00
|
|
|
# Available at setup time due to pyproject.toml
|
|
|
|
from pybind11.setup_helpers import Pybind11Extension, build_ext
|
2020-09-24 17:35:25 +02:00
|
|
|
|
2021-10-22 02:03:19 +02:00
|
|
|
__version__ = "1.0.0"
|
2020-09-24 17:35:25 +02:00
|
|
|
|
2021-10-22 02:03:19 +02:00
|
|
|
# Note:
|
|
|
|
# Sort input source files if you glob sources to ensure bit-for-bit
|
|
|
|
# reproducible builds (https://github.com/pybind/python_example/pull/53)
|
2020-09-24 17:35:25 +02:00
|
|
|
|
2021-10-22 02:03:19 +02:00
|
|
|
ext_modules = [Pybind11Extension(
|
|
|
|
"oxenmq",
|
|
|
|
["src/bencode.cpp", "src/module.cpp", "src/oxenmq.cpp"],
|
|
|
|
cxx_std=17,
|
|
|
|
libraries=["oxenmq"],
|
|
|
|
),
|
|
|
|
]
|
2020-09-24 17:35:25 +02:00
|
|
|
|
|
|
|
setup(
|
2021-10-22 02:03:19 +02:00
|
|
|
name="oxenmq",
|
|
|
|
version=__version__,
|
|
|
|
author="Jason Rhinelander",
|
|
|
|
author_email="jason@oxen.io",
|
|
|
|
url="https://github.com/oxen-io/oxen-mq",
|
|
|
|
description="Python wrapper for oxen-mq message passing library",
|
|
|
|
long_description="",
|
|
|
|
ext_modules=ext_modules,
|
|
|
|
cmdclass={"build_ext": build_ext},
|
2020-09-24 17:35:25 +02:00
|
|
|
zip_safe=False,
|
|
|
|
)
|