Anonymous avatar Anonymous committed 4adc144

improve setup

Comments (0)

Files changed (1)

 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-try:
-    from setuptools import setup, find_packages
-except ImportError:
-    import ez_setup
-    ez_setup.use_setuptools()
-    from setuptools import setup, find_packages
 
 import os
 import sys
 
+
+from ez_setup import use_setuptools
+if 'cygwin' in sys.platform.lower():
+   min_version='0.6c6'
+else:
+   min_version='0.6a9'
+try:
+    use_setuptools(min_version=min_version)
+except TypeError:
+    # If a non-local ez_setup is already imported, it won't be able to
+    # use the min_version kwarg and will bail with TypeError
+    use_setuptools()
+    
+
+from setuptools import setup, find_packages
+
+
 data_files = []
 for dir, dirs, files in os.walk('django_authopenid'):
     for i, dirname in enumerate(dirs):
 
 setup(
     name = 'django-authopenid',
-    version = '1.0',
+    version = '1.0.1',
     description = 'Openid authentification application for Django',
     long_description = \
 """Django authentification application with openid using django auth contrib. 
     packages = find_packages(),
     data_files = data_files,
     include_package_data = True,
-    
-    setup_requires = [
-        'setuptools>=0.6c7',
-    ],
-
     install_requires = [
         'python-openid>=2.2.1',
         'django-registration'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.