-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (30 loc) · 911 Bytes
/
setup.py
File metadata and controls
32 lines (30 loc) · 911 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
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import pybind11
ext_modules = [
Extension(
name="CTF_Library.Cryptography.LinearAlgebra.linear_equation_solver_GF2_impl",
sources=[
"CTF_Library/Cryptography/LinearAlgebra/linear_equation_solver_GF2_impl.cpp"
],
include_dirs=[
pybind11.get_include(),
"CTF_Library",
],
extra_compile_args=["-std=c++26", "-O3", "-march=native"],
language="c++",
),
Extension(
name="CTF_Library.Cryptography.Hash.hash_impl",
sources=["CTF_Library/Cryptography/Hash/hash_impl.cpp"],
include_dirs=[
pybind11.get_include(),
"CTF_Library",
],
extra_compile_args=["-std=c++26", "-O3", "-march=native"],
language="c++",
),
]
setup(
ext_modules=ext_modules,
)