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