All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] py-smbus/setup.py: use setuptools instead of distutils
@ 2022-01-14 13:49 Ross Burton
  2022-01-18 12:23 ` Jean Delvare
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2022-01-14 13:49 UTC (permalink / raw)
  To: linux-i2c; +Cc: jdelvare

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",
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] py-smbus/setup.py: use setuptools instead of distutils
  2022-01-14 13:49 [PATCH] py-smbus/setup.py: use setuptools instead of distutils Ross Burton
@ 2022-01-18 12:23 ` Jean Delvare
  2022-01-18 16:50   ` Ross Burton
  0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2022-01-18 12:23 UTC (permalink / raw)
  To: Ross Burton; +Cc: linux-i2c

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] py-smbus/setup.py: use setuptools instead of distutils
  2022-01-18 12:23 ` Jean Delvare
@ 2022-01-18 16:50   ` Ross Burton
  2022-01-19 11:09     ` Jean Delvare
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2022-01-18 16:50 UTC (permalink / raw)
  To: Jean Delvare; +Cc: linux-i2c

> 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.

Yes, it is.

Ross

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] py-smbus/setup.py: use setuptools instead of distutils
  2022-01-18 16:50   ` Ross Burton
@ 2022-01-19 11:09     ` Jean Delvare
  0 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2022-01-19 11:09 UTC (permalink / raw)
  To: Ross Burton; +Cc: linux-i2c

On Tue, 18 Jan 2022 16:50:56 +0000, Ross Burton wrote:
> > 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.  
> 
> Yes, it is.

Patch applied then, thanks for your contribution.

-- 
Jean Delvare
SUSE L3 Support

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-19 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 13:49 [PATCH] py-smbus/setup.py: use setuptools instead of distutils Ross Burton
2022-01-18 12:23 ` Jean Delvare
2022-01-18 16:50   ` Ross Burton
2022-01-19 11:09     ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.