Mercurial > p > roundup > code
comparison setup.py @ 4717:9dc50be521ee
Make roundup play nice with setup tools (for using with virtualenv)
| author | Pradip Caulagi <caulagi@gmail.com> |
|---|---|
| date | Fri, 28 Dec 2012 15:33:57 +0530 |
| parents | 002119646555 |
| children | d2f58accb405 |
comparison
equal
deleted
inserted
replaced
| 4716:fa03ae7ac570 | 4717:9dc50be521ee |
|---|---|
| 1 #! /usr/bin/env python | 1 #! /usr/bin/env python |
| 2 # -*- coding: utf-8 -*- | |
| 2 # | 3 # |
| 3 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) | 4 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) |
| 4 # This module is free software, and you may redistribute it and/or modify | 5 # This module is free software, and you may redistribute it and/or modify |
| 5 # under the same terms as Python, so long as this copyright message and | 6 # under the same terms as Python, so long as this copyright message and |
| 6 # disclaimer are retained in their original form. | 7 # disclaimer are retained in their original form. |
| 22 from roundup.dist.command.build_scripts import build_scripts | 23 from roundup.dist.command.build_scripts import build_scripts |
| 23 from roundup.dist.command.build_py import build_py | 24 from roundup.dist.command.build_py import build_py |
| 24 from roundup.dist.command.build import build, list_message_files | 25 from roundup.dist.command.build import build, list_message_files |
| 25 from roundup.dist.command.bdist_rpm import bdist_rpm | 26 from roundup.dist.command.bdist_rpm import bdist_rpm |
| 26 from roundup.dist.command.install_lib import install_lib | 27 from roundup.dist.command.install_lib import install_lib |
| 27 from distutils.core import setup | 28 |
| 29 try: | |
| 30 from setuptools import setup | |
| 31 except ImportError: | |
| 32 from distutils.core import setup | |
| 28 | 33 |
| 29 import sys, os | 34 import sys, os |
| 30 from glob import glob | 35 from glob import glob |
| 31 | 36 |
| 32 # patch distutils if it can't cope with the "classifiers" keyword | 37 # patch distutils if it can't cope with the "classifiers" keyword |
