This repository has been archived on 2022-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
lets/pp/catch_the_pp/setup.py

17 lines
481 B
Python
Raw Normal View History

2018-12-09 05:15:56 +00:00
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import os
extensions = []
for root, dirs, files in os.walk(os.getcwd()):
for file in files:
if file.endswith(".pyx"):
file_path = os.path.relpath(os.path.join(root, file))
extensions.append(Extension(file_path.replace("/", ".")[:-4], [file_path]))
setup(
name="catch-the-pp",
ext_modules=cythonize(extensions, nthreads=4),
)