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

Commit

Permalink
Fix python 3 pip install issue with relative ez_setup import.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdicola committed Oct 20, 2016
1 parent ad6521d commit 4e89e32
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -12,7 +18,7 @@
'Topic :: System :: Hardware']

setup(name = 'Adafruit_BMP',
version = '1.5.1',
version = '1.5.2',
author = 'Tony DiCola',
author_email = '[email protected]',
description = 'Library for accessing the BMP series pressure and temperature sensors like the BMP085/BMP180 on a Raspberry Pi or Beaglebone Black.',
Expand Down

0 comments on commit 4e89e32

Please sign in to comment.