From bf4191e0d86fb5c781f938f5ce5f55309e25af42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Sun, 28 Mar 2021 20:22:35 +0200 Subject: [PATCH] fix setup --- example/setup.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/example/setup.py b/example/setup.py index ed97887..f909fa2 100644 --- a/example/setup.py +++ b/example/setup.py @@ -2,7 +2,7 @@ import os from setuptools import setup -from snakehouse import Multibuild, build, monkey_patch_parallel_compilation +from snakehouse import Multibuild, build, monkey_patch_parallel_compilation, find_pyx_and_c from setuptools import Extension monkey_patch_parallel_compilation() @@ -18,10 +18,7 @@ if 'DEBUG' in os.environ: cython_multibuilds = [ # note that Windows-style pathes are supported on Linux build environment, # the reverse not necessarily being true (issue #5) - Multibuild('example_module', ['example_module/test.pyx', 'example_module/test2.pyx', - 'example_module/test3/test3.pyx', - 'example_module/test3/test2.pyx', - 'example_module/test_n.c'], + Multibuild('example_module', find_pyx_and_c('example_module'), define_macros=[("CYTHON_TRACE_NOGIL", "1")], dont_snakehouse=dont_snakehouse), Extension('example2.example', ['example2/example.pyx']), -- GitLab