Show
Ignore:
Timestamp:
01/04/08 09:02:04 (1 year ago)
Author:
athomas
Message:

cly: Hostname pattern will not match all-numeric "hosts". Host enforces a valid IP address.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cly/trunk/setup.py

    r493 r501  
    55import sys 
    66from distutils.command.build_ext import build_ext 
    7 from distutils.errors import CCompilerError 
     7from distutils.errors import DistutilsPlatformError, CCompilerError 
    88 
    99class optional_build_ext(build_ext): 
    1010    # This class allows C extension building to fail. 
     11    def run(self): 
     12        try: 
     13            build_ext.run(self) 
     14        except DistutilsPlatformError: 
     15            self._unavailable() 
     16 
    1117    def build_extension(self, ext): 
    1218        try: 
    1319            build_ext.build_extension(self, ext) 
    1420        except CCompilerError, x: 
    15             print '*' * 78 
    16             print """ 
     21            self._unavailable() 
     22 
     23    def _unavailable(self): 
     24        print '*' * 78 
     25        print """ 
    1726WARNING: Could not compile C extension, contextual help will not be available. 
    1827""" 
    19             print '*' * 78 
     28        print '*' * 78 
    2029 
    2130