You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
965 B
34 lines
965 B
import sys |
|
|
|
from pybind11 import get_cmake_dir |
|
|
|
# Available at setup time due to pyproject.toml |
|
from pybind11.setup_helpers import Pybind11Extension, build_ext |
|
from setuptools import setup |
|
|
|
__version__ = "0.1.3" |
|
|
|
ext_modules = [ |
|
Pybind11Extension( |
|
"stormpci_bin_reader", |
|
["src/main.cpp"], |
|
# Example: passing in the version to the compiled code |
|
define_macros=[("VERSION_INFO", __version__)], |
|
), |
|
] |
|
|
|
setup( |
|
name="stormpci_bin_reader", |
|
version=__version__, |
|
author="Fedor Sarafanov", |
|
author_email="sfg180@yandex.ru", |
|
url="", |
|
description="Read binary files from lightning detection network based on Boltek-StormPCI", |
|
long_description="", |
|
ext_modules=ext_modules, |
|
# Currently, build_ext only provides an optional "highest supported C++ |
|
# level" feature, but in the future it may provide more features. |
|
cmdclass={"build_ext": build_ext}, |
|
zip_safe=False, |
|
python_requires=">=3.6", |
|
)
|
|
|