setup.py
changeset 48830 3491c450dcae
parent 48829 fef4198c855c
child 48831 40e35034eac8
equal deleted inserted replaced
48829:fef4198c855c 48830:3491c450dcae
    49 be at least 1.0.1).
    49 be at least 1.0.1).
    50 """
    50 """
    51     print(error, file=sys.stderr)
    51     print(error, file=sys.stderr)
    52     sys.exit(1)
    52     sys.exit(1)
    53 
    53 
    54 if sys.version_info[0] >= 3:
    54 DYLIB_SUFFIX = sysconfig.get_config_vars()['EXT_SUFFIX']
    55     DYLIB_SUFFIX = sysconfig.get_config_vars()['EXT_SUFFIX']
       
    56 else:
       
    57     # deprecated in Python 3
       
    58     DYLIB_SUFFIX = sysconfig.get_config_vars()['SO']
       
    59 
    55 
    60 # Solaris Python packaging brain damage
    56 # Solaris Python packaging brain damage
    61 try:
    57 try:
    62     import hashlib
    58     import hashlib
    63 
    59