From e634e76b330a09802c8d73448cc4f961b1f65295 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Thu, 25 May 2023 01:06:55 +1200 Subject: [PATCH] Fix hang in unit testing Because the unit tests use multiprocessing, we must avoid launching setuptools again when we spawn a child process. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 37f64cf..b74842f 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ from setuptools import setup -setup(install_requires=["setuptools>=30.3.0"]) +if __name__ == '__main__': + setup(install_requires=["setuptools>=30.3.0"])