Skip to content

Commit

Permalink
Dependency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m-rtijn committed Apr 23, 2017
1 parent f610708 commit e9c0864
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 12 additions & 9 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
::
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ 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',
author='MrTijn/Tijndagamer',
author_email='[email protected]',
license='MIT',
packages=['mpu6050'],
install_requires=['smbus-cffi'],
scripts=['bin/mpu6050-example'],
zip_safe=False,
long_description=readme())

0 comments on commit e9c0864

Please sign in to comment.