浏览代码

setup: use setuptools if available

This makes using python setup.py develop possible for those of us that want to track the development version of dulwich.
Augie Fackler 15 年之前
父节点
当前提交
7347f39e62
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      setup.py

+ 6 - 3
setup.py

@@ -2,7 +2,10 @@
 # Setup file for bzr-git
 # Copyright (C) 2008-2009 Jelmer Vernooij <jelmer@samba.org>
 
-from distutils.core import setup
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
 from distutils.extension import Extension
 
 dulwich_version_string = '0.4.1'
@@ -24,8 +27,8 @@ setup(name='dulwich',
       author='Jelmer Vernooij',
       author_email='jelmer@samba.org',
       long_description="""
-      Simple Pure-Python implementation of the Git file formats and 
-      protocols. Dulwich is the place where Mr. and Mrs. Git live 
+      Simple Pure-Python implementation of the Git file formats and
+      protocols. Dulwich is the place where Mr. and Mrs. Git live
       in one of the Monty Python sketches.
       """,
       packages=['dulwich', 'dulwich.tests'],