From e9c0864ad49a829a28b09968914cd1a4d153dac9 Mon Sep 17 00:00:00 2001 From: Martijn Date: Sun, 23 Apr 2017 15:26:20 +0200 Subject: [PATCH] Dependency fix --- README.rst | 21 ++++++++++++--------- setup.py | 4 ++-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/README.rst b/README.rst index 68250c1..110f37e 100644 --- a/README.rst +++ b/README.rst @@ -19,24 +19,27 @@ Assuming that the address of your MPU-6050 is 0x68, you can read read accelerome Dependencies ------------ -* smbus-cffi +You need to have the ``python-smbus`` package installed. -You can either install smbus-cffi using pip or install the python-smbus package using apt. -If you don't install the smbus-cffi package but instead use the python-smbus package via apt, -you need to remove the following line from the setup.py file: +Installation +------------ +There are two ways of installing this package: via PyPi or via the git repository. +Installing from the git repository insures that you have the absolute latest +version installed, but this can be prone to bugs. + +1. install the python-smbus package :: - install_requires=['smbus-cffi'] + sudo apt install python-smbus -Installation ------------- - -1. pip install from PyPi +2. Install this package from PyPi repository :: pip install mpu6050-raspberrypi +Or: + 2. Clone the repository and run setup.py :: diff --git a/setup.py b/setup.py index 17f70db..202d4db 100644 --- a/setup.py +++ b/setup.py @@ -5,12 +5,13 @@ def readme(): return f.read() setup(name='mpu6050-raspberrypi', - version='1.0.3.3', + version='1.0.3.4', description='A Python module for accessing the MPU-6050 digital accelerometer and gyroscope on a Raspberry Pi.', classifiers=[ 'License :: OSI Approved :: MIT License', 'Topic :: Software Development :: Libraries', 'Programming Language :: Python :: 2.7', + 'Operating System :: POSIX :: Linux', ], keywords='mpu6050 raspberry', url='https://github.com/Tijndagamer/mpu6050', @@ -18,7 +19,6 @@ def readme(): author_email='mrtijn@riseup.net', license='MIT', packages=['mpu6050'], - install_requires=['smbus-cffi'], scripts=['bin/mpu6050-example'], zip_safe=False, long_description=readme())