From 79d3c35a5ca39b802c99d1e18730a1b7dc160d5a Mon Sep 17 00:00:00 2001
From: Iustin Pop <iusty@k1024.org>
Date: Thu, 3 Jan 2013 21:26:15 +0100
Subject: [PATCH] Make setup.py behave nicely without setuptools

Currently, it would fail hard, whereas we can at least build the
extension (even though the testsuite will not work) when setuptools is
missing.
---
 setup.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 17326bc..1107d70 100755
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,10 @@
 #!/usr/bin/python
 
 import distutils
-from setuptools import setup, Extension
+try:
+  from setuptools import setup, Extension
+except ImportError:
+  from distutils.core import setup, Extension
 
 long_desc = """This is a C extension module for Python which
 implements extended attributes manipulation. It is a wrapper on top
-- 
2.39.5