From 5e0f08b9a636dedcd295fa7fc576632400961ae4 Mon Sep 17 00:00:00 2001 From: j-t-1 <120829237+j-t-1@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:01:41 +0100 Subject: [PATCH] Remove distutils use setuptools is a better documented and well maintained enhancement based on distutils. While it provides very similar functionality, it is much better able to support users on earlier Python releases, and can respond to bug reports more quickly. A number of platform-specific enhancements already exist in setuptools that have not been added to distutils, and there is been a long-standing recommendation in the distutils documentation to prefer setuptools. https://peps.python.org/pep-0632 --- setup.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 927381d..16083df 100755 --- a/setup.py +++ b/setup.py @@ -4,14 +4,10 @@ import os import re import sys - -try: - from setuptools import Command, setup -except ImportError as excp: - from distutils.core import setup, Command - from unittest import TestLoader, TextTestRunner +from setuptools import Command, setup + os.environ["COPY_EXTENDED_ATTRIBUTES_DISABLE"] = "true" os.environ["COPYFILE_DISABLE"] = "true"