From ad0f94a946e48d99a329aa326dd11220219d4026 Mon Sep 17 00:00:00 2001 From: Michael Brennan Date: Thu, 9 Jul 2015 22:13:03 +0200 Subject: [PATCH] Only install enum34 when Python version < 3.4 --- setup.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 653d963a1..135425846 100755 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ from __future__ import absolute_import, division, print_function from os.path import abspath, dirname, join +import sys from setuptools import setup @@ -15,6 +16,11 @@ .strip().strip('\'"') ) +install_requires = ['netifaces', 'six'] + +if sys.version_info < (3,4): + install_requires.append('enum34') + setup( name='zeroconf', version=version, @@ -50,9 +56,5 @@ 'Bonjour', 'Avahi', 'Zeroconf', 'Multicast DNS', 'Service Discovery', 'mDNS', ], - install_requires=[ - 'enum34', - 'netifaces', - 'six', - ], + install_requires=install_requires, )