Procházet zdrojové kódy

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 před 15 roky
rodič
revize
7347f39e62
1 změnil soubory, kde provedl 6 přidání a 3 odebrání
  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'],