From 2f1bc83c6362cd8ffbcb00dea651568d15ef67d4 Mon Sep 17 00:00:00 2001 From: Fantix King Date: Fri, 9 Sep 2022 11:48:26 -0400 Subject: [PATCH] Partially revert "Fix running of setup.py test with recent setuptools. (#84)" This partially reverts commit be920ea74ea4237dce191232dc68dae35c670c29. Fixes #320 --- setup.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/setup.py b/setup.py index 486ea27..f48b2a8 100644 --- a/setup.py +++ b/setup.py @@ -117,12 +117,6 @@ class uvloop_build_ext(build_ext): ] def initialize_options(self): - # initialize_options() may be called multiple times on the - # same command object, so make sure not to override previously - # set options. - if getattr(self, '_initialized', False): - return - super().initialize_options() self.use_system_libuv = False self.cython_always = False @@ -130,12 +124,6 @@ class uvloop_build_ext(build_ext): self.cython_directives = None def finalize_options(self): - # finalize_options() may be called multiple times on the - # same command object, so make sure not to override previously - # set options. - if getattr(self, '_initialized', False): - return - need_cythonize = self.cython_always cfiles = {} @@ -195,8 +183,6 @@ class uvloop_build_ext(build_ext): super().finalize_options() - self._initialized = True - def build_libuv(self): env = _libuv_build_env()