setup.py
changeset 6509 b717a6cb337b
parent 6507 df2527c645cd
parent 6508 38c2ff52cfca
child 6522 c46b3b3291e8
equal deleted inserted replaced
6507:df2527c645cd 6509:b717a6cb337b
    29 try:
    29 try:
    30     if os.environ.get('NO_SETUPTOOLS'):
    30     if os.environ.get('NO_SETUPTOOLS'):
    31         raise ImportError() # do as there is no setuptools
    31         raise ImportError() # do as there is no setuptools
    32     from setuptools import setup
    32     from setuptools import setup
    33     from setuptools.command import install_lib
    33     from setuptools.command import install_lib
    34     from setuptools.command import install_data
       
    35     USE_SETUPTOOLS = True
    34     USE_SETUPTOOLS = True
    36 except ImportError:
    35 except ImportError:
    37     from distutils.core import setup
    36     from distutils.core import setup
    38     from distutils.command import install_lib
    37     from distutils.command import install_lib
    39     from distutils.command import install_data
       
    40     USE_SETUPTOOLS = False
    38     USE_SETUPTOOLS = False
       
    39 from distutils.command import install_data
    41 
    40 
    42 # import required features
    41 # import required features
    43 from __pkginfo__ import modname, version, license, description, web, \
    42 from __pkginfo__ import modname, version, license, description, web, \
    44      author, author_email
    43      author, author_email
    45 
    44