From f3e08d901f1bb3d6d0eae1572d332f5ff3e7909b Mon Sep 17 00:00:00 2001
From: Samuel Colvin <s@muelcolvin.com>
Date: Wed, 4 Dec 2019 11:41:54 +0000
Subject: [PATCH] change cython nthreads default to zero

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 3f7a615..c362949 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ if not any(arg in sys.argv for arg in ['clean', 'check']) and 'SKIP_CYTHON' not
         ext_modules = cythonize(
             'pydantic/*.py',
             exclude=['pydantic/generics.py'],
-            nthreads=4,
+            nthreads=int(os.getenv('CYTHON_NTHREADS', 0)),
             language_level=3,
             compiler_directives=compiler_directives,
         )
-- 
2.17.1

