From c28f509ff9fd23bf3d12d24d98073d5acfabe63c Mon Sep 17 00:00:00 2001 From: Joost Cassee Date: Sun, 1 Jun 2014 22:46:48 +0200 Subject: [PATCH] Add Django dependency in setup.py --- .gitignore | 2 ++ setup.py | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e5d8ec2..8472c41 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ *.pyc *.pyo + +*.egg-info diff --git a/setup.py b/setup.py index 23bb209..472ac3a 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,10 @@ -from distutils.core import setup, Command import os +try: + from setuptools import setup, Command +except ImportError: + from distutils.core import setup, Command + os.environ['DJANGO_SETTINGS_MODULE'] = 'analytical.tests.settings' cmdclass = {} @@ -70,4 +74,7 @@ setup( url = 'http://github.com/jcassee/django-analytical', download_url = 'http://github.com/jcassee/django-analytical/archives/master', cmdclass = cmdclass, + install_requires = [ + 'Django>=1.4', + ], )