Browse Source

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 years ago
parent
commit
3968b8feec
1 changed files with 6 additions and 3 deletions
  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'],