mirror of
https://github.com/wahyd4/Adafruit_Python_SSD1306.git
synced 2026-08-09 04:46:43 +10:00
Fix python 3 pip install issue with ez_setup relative import.
This commit is contained in:
@@ -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_SSD1306',
|
||||
version = '1.6.0',
|
||||
version = '1.6.1',
|
||||
author = 'Tony DiCola',
|
||||
author_email = 'tdicola@adafruit.com',
|
||||
description = 'Python library to use SSD1306-based 128x64 or 128x32 pixel OLED displays with a Raspberry Pi or Beaglebone Black.',
|
||||
|
||||
Reference in New Issue
Block a user