diff options
Diffstat (limited to 'Adafruit_Python_GPIO/setup.py')
-rw-r--r-- | Adafruit_Python_GPIO/setup.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Adafruit_Python_GPIO/setup.py b/Adafruit_Python_GPIO/setup.py new file mode 100644 index 0000000..592a34c --- /dev/null +++ b/Adafruit_Python_GPIO/setup.py @@ -0,0 +1,28 @@ +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 + +import sys + +# Define required packages. +requires = ['adafruit-pureio'] +# Assume spidev is required on non-windows & non-mac platforms (i.e. linux). +if sys.platform != 'win32' and sys.platform != 'darwin': + requires.append('spidev') + +setup(name = 'Adafruit_GPIO', + version = '1.0.3', + author = 'Tony DiCola', + author_email = 'tdicola@adafruit.com', + description = 'Library to provide a cross-platform GPIO interface on the Raspberry Pi and Beaglebone Black using the RPi.GPIO and Adafruit_BBIO libraries.', + license = 'MIT', + url = 'https://github.com/adafruit/Adafruit_Python_GPIO/', + install_requires = requires, + test_suite = 'tests', + packages = find_packages()) |