Fix python3 pip install issue with ez_setup relative import issue.
This commit is contained in:
parent
03b344d8c1
commit
81bcc129ea
1 changed files with 9 additions and 3 deletions
12
setup.py
12
setup.py
|
|
@ -1,5 +1,11 @@
|
|||
from ez_setup import use_setuptools
|
||||
use_setuptools()
|
||||
try:
|
||||
# Try using ez_setup to install setuptools if not already installed.
|
||||
from ez_setup import use_setuptools
|
||||
use_setuptools()
|
||||
except ImportError:
|
||||
# Ignore import error and assume Python 3 which already has setuptools.
|
||||
pass
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
classifiers = ['Development Status :: 4 - Beta',
|
||||
|
|
@ -12,7 +18,7 @@ classifiers = ['Development Status :: 4 - Beta',
|
|||
'Topic :: System :: Hardware']
|
||||
|
||||
setup(name = 'Adafruit_LSM303',
|
||||
version = '1.0.0',
|
||||
version = '1.0.1',
|
||||
author = 'Tony DiCola',
|
||||
author_email = 'tdicola@adafruit.com',
|
||||
description = 'Python code to use the LSM303 accelerometer & magnetometer with Raspberry Pi & BeagleBone Black.',
|
||||
|
|
|
|||
Loading…
Reference in a new issue