Skip to content

Instantly share code, notes, and snippets.

@oory33
Last active February 25, 2024 00:52
Show Gist options
  • Save oory33/4262ac0ab512f4d49c33595ebbeedc7a to your computer and use it in GitHub Desktop.
Save oory33/4262ac0ab512f4d49c33595ebbeedc7a to your computer and use it in GitHub Desktop.
from setuptools import setup, Extension
from Cython.Build import cythonize
import Cython.Compiler.Options
Cython.Compiler.Options.docstrings = False
ext_modules = cythonize(
[
#module1
Extension("libs.mymodule01", ["libs/mymodule01.py"]),
#module2
Extension("libs.mymodule02", ["libs/mymodule02.py"]),
], compiler_directives=dict(
language_level="3",
always_allow_keywords=True
)
)
setup(
name="test01",
version='1.0.0',
ext_modules=ext_modules,
author="my-name",
author_email="my-mail@email.com",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment