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

Commit 5abc5d2

Browse files
committedOct 20, 2016
Fix python 3 pip install issue with ez_setup relative import.
1 parent 38cd1bb commit 5abc5d2

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
import sys
@@ -11,7 +17,7 @@
1117
requires.append('spidev')
1218

1319
setup(name = 'Adafruit_GPIO',
14-
version = '1.0.0',
20+
version = '1.0.1',
1521
author = 'Tony DiCola',
1622
author_email = 'tdicola@adafruit.com',
1723
description = 'Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.',

0 commit comments

Comments
 (0)