As per [1], distutils is deprecated in Python 3.10 and will be removed
entirely in Python 3.12.
As setuptools is essentially an enhanced version of distutils, it's
trivial to port to that.
[1] https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
If we are building to a defined destdir py-smbus is going to ignore this
and try install to the actual root. This breaks packaging setups as the
install section would fail.
Signed-off-by: Morten Linderud <morten@linderud.pw>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
The Python bindings haven't been updated after commit
330bba29f3 ("libi2c: Properly
propagate real error codes on read errors"). This led to erronenous
behavior every time an error other than -1 is returned by i2c_smbus_*
functions.
[JD: Edited description.]
Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Contributed by Michael Göhler. My original attempt to fix it just
shows how little I know about python.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6278 7894878c-1315-0410-8ee3-d5d059ff63e0
When you do `pydoc smbus`, you just get the high level description.
There is no automatic display of the classes (like SMBus). This is
due to the name not being specified quite right in the type.
Contributed by Mike Frysinger.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6171 7894878c-1315-0410-8ee3-d5d059ff63e0