1 |
eulisse |
1.1 |
diff --git a/setup.py b/setup.py
|
2 |
|
|
index 092d0d5..a2ab53c 100644
|
3 |
|
|
--- a/setup.py
|
4 |
|
|
+++ b/setup.py
|
5 |
|
|
@@ -1,6 +1,15 @@
|
6 |
|
|
-from ez_setup import use_setuptools
|
7 |
|
|
-use_setuptools()
|
8 |
|
|
-from setuptools import setup, find_packages
|
9 |
|
|
+from distutils.core import setup
|
10 |
|
|
+is_setuptools = False
|
11 |
|
|
+from commands import getstatusoutput
|
12 |
|
|
+import sys
|
13 |
|
|
+
|
14 |
|
|
+def find_packages (directory):
|
15 |
|
|
+ error, output = getstatusoutput (("""
|
16 |
|
|
+find %(directory)s/sqlalchemy -name __init__.py | sed -e 's|%(directory)s/||;s|/|.|g;s|.__init__.py||'
|
17 |
|
|
+""" % locals ()).strip ('\n'))
|
18 |
|
|
+ if error:
|
19 |
|
|
+ sys.exit (1)
|
20 |
|
|
+ return output.split ("\n")
|
21 |
|
|
|
22 |
|
|
setup(name = "SQLAlchemy",
|
23 |
valya |
1.2 |
version = "0.4.4",
|