Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only install uuid if its not present on system

  • Loading branch information...
commit f85d886d3514fcd3f0bdb053e1eab6b36275859b 1 parent c5aaec2
@dcramer authored gandalfar committed
Showing with 19 additions and 14 deletions.
  1. +19 −14 setup.py
View
33 setup.py
@@ -16,12 +16,27 @@
use_setuptools()
from setuptools import setup, find_packages
+install_requires = [
+ 'Flask',
+ 'Flask-Babel',
+ 'redis',
+ # python-daemon and eventlet are required to run the Sentry indepenent webserver
+ 'python-daemon>=1.6',
+ 'eventlet>=0.9.15',
+]
+
+try:
+ __import__('uuid')
+except ImportError:
+ # uuid ensures compatibility with older versions of Python
+ install_requires.append('uuid')
+
tests_require = [
- 'nose',
- 'unittest2',
'Django>=1.2,<1.4',
'django-celery',
'logbook',
+ 'nose',
+ 'unittest2',
]
setup(
@@ -35,18 +50,8 @@
packages=find_packages(exclude="example_project"),
zip_safe=False,
license='BSD',
- install_requires=[
- 'Flask',
- 'Flask-Babel',
- 'redis',
- # python-daemon and eventlet are required to run the Sentry indepenent webserver
- 'python-daemon>=1.6',
- 'eventlet>=0.9.15',
- # uuid ensures compatibility with older versions of Python
- 'uuid',
- ],
- dependency_links=[
- ],
+ install_requires=install_requires,
+ dependency_links=[],
tests_require=tests_require,
extras_require={'test': tests_require},
test_suite='nose.collector',
Please sign in to comment.
Something went wrong with that request. Please try again.