1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
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 = {}
|