-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (34 loc) · 920 Bytes
/
setup.py
File metadata and controls
40 lines (34 loc) · 920 Bytes
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
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import sys
import setuptools
class get_pybind_include(object):
"""Helper class to determine the pybind11 include path"""
def __str__(self):
import pybind11
return pybind11.get_include()
ext_modules = [
Extension(
'polypod',
['polypod.cpp'],
include_dirs=[
get_pybind_include(),
],
language='c++',
extra_compile_args=['-std=c++11'],
),
]
setup(
name='pybind11_example',
version='0.1.0',
author='Your Name',
author_email='your.email@example.com',
description='A pybind11 example module',
long_description='',
ext_modules=ext_modules,
install_requires=['pybind11>=2.6.0'],
setup_requires=['pybind11>=2.6.0'],
cmdclass={'build_ext': build_ext},
zip_safe=False,
python_requires='>=3.6',
)