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/setup.py

17 lines
517 B
Python
Raw Normal View History

2018-12-09 05:15:56 +00:00
"""Cython build file"""
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import os
cythonExt = []
for root, dirs, files in os.walk(os.getcwd()):
for file in files:
if file.endswith(".pyx") and ".pyenv" not in root: # im sorry
filePath = os.path.relpath(os.path.join(root, file))
cythonExt.append(Extension(filePath.replace("/", ".")[:-4], [filePath]))
setup(
name = "lets pyx modules",
ext_modules = cythonize(cythonExt, nthreads = 4),
)