Ticket #3586: 3586.no-speedups.3.patch
| File 3586.no-speedups.3.patch, 1.3 KB (added by techtonik, 2 years ago) |
|---|
-
twisted/python/dist.py
10 10 from distutils.command import build_scripts, install_data, build_ext, build_py 11 11 from distutils.errors import CompileError 12 12 from distutils import core 13 from distutils.core import Extension 13 from distutils.core import Extension, Distribution 14 14 15 15 twisted_subprojects = ["conch", "lore", "mail", "names", 16 16 "news", "pair", "runner", "web", … … 253 253 254 254 ## Helpers and distutil tweaks 255 255 256 # Global --no-speedups option to install Twisted without extensions - #3586 257 258 Distribution.global_options.append(('no-speedups', None, 'skip C extensions')) 259 Distribution.no_speedups = 0 260 261 256 262 class build_py_twisted(build_py.build_py): 257 263 """ 258 264 Changes behavior in Python 2.2 to support simultaneous specification of … … 301 307 Allow subclasses to easily detect and customize Extensions to 302 308 build at install-time. 303 309 """ 310 def finalize_options(self): 311 """ 312 Clean extension list if global --no-speedups option is set. 313 """ 314 build_ext.build_ext.finalize_options(self) 315 if self.distribution.no_speedups: 316 self.extensions = [] 304 317 305 318 def prepare_extensions(self): 306 319 """
