From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Mon, 15 Jul 2024 19:57:03 +0000
Subject: No distutils

Forwarded: not-needed
---
 setup.py | 44 ++++++++++++++++++++++----------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/setup.py b/setup.py
index d798ebf..340d695 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,8 @@
 import os
 import sys
-from distutils import ccompiler
-from distutils.command.clean import clean
-from distutils.sysconfig import customize_compiler
+# from distutils import ccompiler
+# from distutils.command.clean import clean
+# from distutils.sysconfig import customize_compiler
 from glob import glob
 
 from Cython.Distutils.build_ext import new_build_ext as build_ext
@@ -328,14 +328,14 @@ class ve_build_ext(build_ext):
 
     def run(self):
         try:
-            machine = cpuinfo.platform.machine()
-            if machine in ('x86_64', 'aarch64'):
-                pattern = '*amd64.S' if machine == 'x86_64' else '*aarch64.S'
-                S_files = glob(f'c-blosc/internal-complibs/zstd*/decompress/{pattern}')
-                compiler = ccompiler.new_compiler()
-                customize_compiler(compiler)
-                compiler.src_extensions.append('.S')
-                compiler.compile(S_files)
+            # machine = cpuinfo.platform.machine()
+            # if machine in ('x86_64', 'aarch64'):
+            #     pattern = '*amd64.S' if machine == 'x86_64' else '*aarch64.S'
+            #     S_files = glob(f'c-blosc/internal-complibs/zstd*/decompress/{pattern}')
+            #     compiler = ccompiler.new_compiler()
+            #     customize_compiler(compiler)
+            #     compiler.src_extensions.append('.S')
+            #     compiler.compile(S_files)
 
             build_ext.run(self)
         except PlatformError as e:
@@ -350,16 +350,16 @@ class ve_build_ext(build_ext):
             raise BuildFailed from e
 
 
-class Sclean(clean):
-    # Clean up .o files created by .S files
-
-    def run(self):
-        if cpuinfo.platform.machine() == 'x86_64':
-            o_files = glob('c-blosc/internal-complibs/zstd*/decompress/*amd64.o')
-            for f in o_files:
-                os.remove(f)
-
-        clean.run(self)
+# class Sclean(clean):
+#     # Clean up .o files created by .S files
+#
+#     def run(self):
+#         if cpuinfo.platform.machine() == 'x86_64':
+#             o_files = glob('c-blosc/internal-complibs/zstd*/decompress/*amd64.o')
+#             for f in o_files:
+#                 os.remove(f)
+#
+#         clean.run(self)
 
 
 def run_setup(with_extensions):
@@ -375,7 +375,7 @@ def run_setup(with_extensions):
             + jenkins_extension()
         )
 
-        cmdclass = {'build_ext': ve_build_ext, 'clean': Sclean}
+        cmdclass = {'build_ext': ve_build_ext}  # , 'clean': Sclean}
     else:
         ext_modules = []
         cmdclass = {}
