Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

from setuptools import setup, Extension
from Cython.Build import cythonize
from setuptools import Extension, setup

extra_compile_args = [
"-std=c++11",
Expand All @@ -11,15 +12,21 @@
"-fomit-frame-pointer",
]

extensions = [
Extension(
"pyjson5.pyjson5",
sources=["pyjson5.pyx"],
include_dirs=["src"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_compile_args,
language="c++",
),
]

setup(
ext_modules=[
Extension(
"pyjson5.pyjson5",
sources=["pyjson5.pyx"],
include_dirs=["src"],
extra_compile_args=extra_compile_args,
extra_link_args=extra_compile_args,
language="c++",
)
],
ext_modules=cythonize(
extensions,
compiler_directives={"language_level": 3},
annotate=True,
),
)