From 87e2eaf3550fee517d7226bd6785cfe853e1f947 Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Wed, 9 Nov 2022 15:35:39 +0200 Subject: [PATCH 1/2] Import setuptools before distutils setuptools 60 uses its own bunlded version of distutils, by default. It injects this into sys.modules, at import time. So we need to make sure that it is imported, before anything else imports distutils, to ensure everything is using the same distutils version. This change in setuptools is to prepare for Python 3.12, which will drop distutils. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 8179e06..d62fba3 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ -import distutils.core ## WARNING: Although the following import appears to do nothing, it is required for bdist_wheel to be recognized from setuptools import setup, find_packages +import distutils.core version = "0.98.3" release = "0.98.3" From 0416e085b0ae83c013cdb26eba4801c9d234621a Mon Sep 17 00:00:00 2001 From: Stefano Rivera Date: Sun, 13 Nov 2022 09:46:07 +0200 Subject: [PATCH 2/2] Replace distutils with setuptools --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index d62fba3..c3bc6ba 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,4 @@ -## WARNING: Although the following import appears to do nothing, it is required for bdist_wheel to be recognized from setuptools import setup, find_packages -import distutils.core version = "0.98.3" release = "0.98.3" @@ -13,7 +11,7 @@ with open('README.md', "r", encoding='utf-8') as f: long_description = f.read() -distutils.core.setup( +setup( name='easygui', version=version, url='https://github.com/robertlugg/easygui',