2016-12-07 21:25:16 +00:00
|
|
|
"""Cython build file"""
|
|
|
|
from distutils.core import setup
|
|
|
|
from distutils.extension import Extension
|
|
|
|
from Cython.Build import cythonize
|
2016-12-08 10:43:23 +00:00
|
|
|
import os
|
|
|
|
|
|
|
|
cythonExt = []
|
|
|
|
for root, dirs, files in os.walk(os.getcwd()):
|
|
|
|
for file in files:
|
2018-04-13 21:38:05 +00:00
|
|
|
if file.endswith(".pyx") and ".pyenv" not in root: # im sorry
|
2016-12-08 10:43:23 +00:00
|
|
|
filePath = os.path.relpath(os.path.join(root, file))
|
|
|
|
cythonExt.append(Extension(filePath.replace("/", ".")[:-4], [filePath]))
|
2016-12-07 21:25:16 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name = "pep.pyx modules",
|
2016-12-08 10:43:23 +00:00
|
|
|
ext_modules = cythonize(cythonExt, nthreads = 4),
|
2016-12-07 21:25:16 +00:00
|
|
|
)
|