17 lines
480 B
Python
17 lines
480 B
Python
"""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"):
|
|
filePath = os.path.relpath(os.path.join(root, file))
|
|
cythonExt.append(Extension(filePath.replace("/", ".")[:-4], [filePath]))
|
|
|
|
setup(
|
|
name = "pep.pyx modules",
|
|
ext_modules = cythonize(cythonExt, nthreads = 4),
|
|
) |