-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (31 loc) · 932 Bytes
/
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
from setuptools import Extension, setup
class get_pybind_include:
"""Helper class to determine the pybind11 include path
The purpose of this class is to postpone importing pybind11
until it is actually installed, so that the ``get_include()``
method can be invoked. """
def __str__(self):
import pybind11
return pybind11.get_include()
ext_modules = [
Extension(
"afl37",
["afl37.cpp"],
include_dirs=[get_pybind_include()],
language="c++",
extra_compile_args=["-std=c++14", "-O3"],
),
]
setup(
name="python-afl37",
version="0.1",
description="",
long_description="",
author="Alexey Preobrazhenskiy",
author_email="dizzy57@gmail.com",
url="https://github.com/dizzy57/python-afl37",
scripts=["py-afl37-fuzz"],
ext_modules=ext_modules,
python_requires=">=3.7",
setup_requires=["pybind11>=2.5.0"],
)