forked from niko-zvt/pysbpl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·44 lines (41 loc) · 1.33 KB
/
setup.py
File metadata and controls
executable file
·44 lines (41 loc) · 1.33 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
import setuptools
from Cython.Build import cythonize
# Relies on system-wide SBPL installation (e.g., via brew or /usr/local)
ext = setuptools.Extension(
"pysbpl.sbpl", # name of extension
["pysbpl/sbpl.pyx"], # filename of our Pyrex/Cython source
language="c++", # this causes Pyrex/Cython to create C++ source
include_dirs=[],
extra_compile_args=["-std=c++11", "-Wno-cpp"],
extra_link_args=[],
libraries=["sbpl"],
library_dirs=[],
runtime_library_dirs=[],
)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name = 'pysbpl',
ext_modules=cythonize(
[ext],
compiler_directives={
'language_level': '3',
'embedsignature': True,
},
),
version="0.0.2",
author="Edited by: Nikolai Zhivotenko",
author_email="niko.zvt@gmail.com",
description="Python bindings for SBPL",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/niko-zvt/pysbpl",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD3 License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
)