linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: Ross Burton <ross.burton@arm.com>
Cc: linux-i2c@vger.kernel.org
Subject: Re: [PATCH] py-smbus/setup.py: use setuptools instead of distutils
Date: Tue, 18 Jan 2022 13:23:24 +0100	[thread overview]
Message-ID: <20220118131131.388e5d3c@endymion> (raw)
In-Reply-To: <20220114134910.3994688-1-ross.burton@arm.com>

Hi Ross,

On Fri, 14 Jan 2022 13:49:10 +0000, Ross Burton wrote:
> 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>
> ---
>  py-smbus/setup.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/py-smbus/setup.py b/py-smbus/setup.py
> index 28a4500..26db33a 100644
> --- a/py-smbus/setup.py
> +++ b/py-smbus/setup.py
> @@ -1,6 +1,6 @@
>  #!/usr/bin/env python
>  
> -from distutils.core import setup, Extension
> +from setuptools import setup, Extension
>  
>  setup(	name="smbus",
>  	version="1.1",

Is setuptools available in python 2.7? For now, py-smbus can be built
for either python2 or python3, and I would like to maintain that
possibility.

Thanks,
-- 
Jean Delvare
SUSE L3 Support

  reply	other threads:[~2022-01-18 12:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14 13:49 [PATCH] py-smbus/setup.py: use setuptools instead of distutils Ross Burton
2022-01-18 12:23 ` Jean Delvare [this message]
2022-01-18 16:50   ` Ross Burton
2022-01-19 11:09     ` Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220118131131.388e5d3c@endymion \
    --to=jdelvare@suse.de \
    --cc=linux-i2c@vger.kernel.org \
    --cc=ross.burton@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).