We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff05a3 commit 6306f90Copy full SHA for 6306f90
setup.py
@@ -1,5 +1,11 @@
1
-from ez_setup import use_setuptools
2
-use_setuptools()
+try:
+ # Try using ez_setup to install setuptools if not already installed.
3
+ from ez_setup import use_setuptools
4
+ use_setuptools()
5
+except ImportError:
6
+ # Ignore import error and assume Python 3 which already has setuptools.
7
+ pass
8
+
9
from setuptools import setup, find_packages
10
11
classifiers = ['Development Status :: 4 - Beta',
@@ -12,7 +18,7 @@
12
18
'Topic :: System :: Hardware']
13
19
14
20
setup(name = 'Adafruit_TCS34725',
15
- version = '1.0.0',
21
+ version = '1.0.1',
16
22
author = 'Tony DiCola',
17
23
author_email = 'tdicola@adafruit.com',
24
description = 'Python code to use the TCS34725 color sensor with the Raspberry Pi & BeagleBone Black.',
0 commit comments