From c8a19ff06db405c1c831d7c42b6e6ab4cabfa3ca Mon Sep 17 00:00:00 2001 From: sommersoft Date: Sat, 23 Mar 2019 09:09:10 -0500 Subject: [PATCH] add Blinka to 'setup.py->install_requires; add PyPI install directions to README --- README.rst | 24 ++++++++++++++++++++++++ setup.py | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8dbf84d..3a4fe95 100644 --- a/README.rst +++ b/README.rst @@ -25,6 +25,30 @@ Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading `the Adafruit library and driver bundle `_. +Installing from PyPI +-------------------- +On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from +PyPI `_. To install for current user: + +.. code-block:: shell + + pip3 install adafruit-circuitpython-pixie + +To install system-wide (this may be required in some cases): + +.. code-block:: shell + + sudo pip3 install adafruit-circuitpython-pixie + +To install in a virtual environment in your current project: + +.. code-block:: shell + + mkdir project-name && cd project-name + python3 -m venv .env + source .env/bin/activate + pip3 install adafruit-circuitpython-pixie + Usage Example ============= diff --git a/setup.py b/setup.py index e5f8f44..ff899e3 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ author='Adafruit Industries', author_email='circuitpython@adafruit.com', - install_requires=[], + install_requires=['Adafruit-Blinka'], # Choose your license license='MIT',