From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Delvare Subject: Re: Howto compile py-smbus with python 3.2 Date: Mon, 21 May 2012 17:14:19 +0200 Message-ID: <20120521171419.2ef13147@endymion.delvare> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Renz, Bernhard" Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org Hi Bernhard, On Mon, 21 May 2012 15:10:38 +0000, Renz, Bernhard wrote: > Hello, > > I got it to work! > With the following pages I did a conversion of py-smbus from Python2 to Python3: > http://docs.python.org/release/3.1.5/extending/building.html#building > http://python3porting.com/cextensions.html > > Here is the smbusmodule.c, which is based on the i2c-tools-3.1.0 release, which compile with Python3: > Hope maybe Khali can provide it for other developers on his repository.... I'll do if you provide your changes as a patch (use diff -ruNp). BTW I hope that your changes do not break support for python version 2, a lot of distributions are still shipping that so we can't break it. Thanks, -- Jean Delvare