Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit f5a43f9

Browse files
committed
Fix python 3 pip install issue with ez_setup relative import.
1 parent e5952eb commit f5a43f9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

setup.py

Lines changed: 9 additions & 3 deletions
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_CharLCD',
15-
version = '1.1.0',
21+
version = '1.1.1',
1622
author = 'Tony DiCola',
1723
author_email = '[email protected]',
1824
description = 'Library to drive character LCD display and plate.',

0 commit comments

Comments
 (0)