Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Commit d0c1907

Browse files
committed
Fix python 3 pip install issue with ez_setup relative import.
1 parent 699426a commit d0c1907

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

setup.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
from ez_setup import use_setuptools
2-
use_setuptools()
1+
try:
2+
# 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+
39
from setuptools import setup, find_packages
410

511
classifiers = ['Development Status :: 4 - Beta',
@@ -12,7 +18,7 @@
1218
'Topic :: System :: Hardware']
1319

1420
setup(name = 'Adafruit_WS2801',
15-
version = '1.0.0',
21+
version = '1.0.1',
1622
author = 'Tony DiCola',
1723
author_email = 'tdicola@adafruit.com',
1824
description = 'Python code to control WS2801 and similar SPI interface addressable RGB LED strips on a Raspberry Pi & BeagleBone Black.',

0 commit comments

Comments
 (0)