Unify all Python trees for both RPi and Jetson Nano, Py2 and Py3

* Move lib files into waveshare_epd package
  * Use int() where integer division is needed
  * Use logging (debug level) in library files, so they can be used by a
    user script without print()s being output
  * Use logging (info level) in example files
  * Move Font.ttc file into pic directory
  * epdconfig.py: Detect RPi or Jetson Nano
  * Search for sysfs_software_spi.so in several places
  * Include both Jetson and RPi readme files
  * Include setup.py for package installation
  * Fix few small syntax errors preventing setuptools byte-compiling
This commit is contained in:
Ryan Finnie 2019-07-20 22:56:45 +00:00
commit d0918826de
No known key found for this signature in database
GPG key ID: 7E60A3A686AE8D98
337 changed files with 1009 additions and 19168 deletions

12
Python/setup.py Normal file
View file

@ -0,0 +1,12 @@
import sys
from setuptools import setup
setup(
name='waveshare-epd',
description='Waveshare e-Paper Display',
author='Waveshare',
package_dir={'': 'lib'},
packages=['waveshare_epd'],
)