equal
deleted
inserted
replaced
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 |