Ticket #3586: 3586.no-speedups.patch
| File 3586.no-speedups.patch, 1.7 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", … … 76 77 if 'cmdclass' not in kw: 77 78 kw['cmdclass'] = { 78 79 'install_data': install_data_twisted, 80 'build': build_twisted, 79 81 'build_scripts': build_scripts_twisted} 80 82 if sys.version_info[:3] < (2, 3, 0): 81 83 kw['cmdclass']['build_py'] = build_py_twisted … … 253 255 254 256 ## Helpers and distutil tweaks 255 257 258 # Global --no-speedups option to install Twisted without extensions - #3586 259 260 Distribution.global_options.append(('no-speedups', None, 'skip C extensions')) 261 Distribution.no_speedups = 0 262 263 256 264 class build_py_twisted(build_py.build_py): 257 265 """ 258 266 Changes behavior in Python 2.2 to support simultaneous specification of … … 301 309 Allow subclasses to easily detect and customize Extensions to 302 310 build at install-time. 303 311 """ 312 def finalize_options(self): 313 """ 314 Clean extension list if global --no-speedups option is set. 315 """ 316 build_ext.build_ext.finalize_options(self) 317 if self.distribution.no_speedups: 318 self.extensions = [] 304 319 305 320 def prepare_extensions(self): 306 321 """
