commit:     940fdd66ed8756524f9df31ce05cb5227564954b
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Dec 30 17:53:56 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Dec 31 08:50:22 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=940fdd66

sci-libs/daal4py: remove unused patches

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../daal4py-2021.7.1-dont-use-entire-include.patch | 69 ---------------------
 ...021.7.1_p20221209-dont-use-entire-include.patch | 72 ----------------------
 2 files changed, 141 deletions(-)

diff --git 
a/sci-libs/daal4py/files/daal4py-2021.7.1-dont-use-entire-include.patch 
b/sci-libs/daal4py/files/daal4py-2021.7.1-dont-use-entire-include.patch
deleted file mode 100644
index 5d3754d56..000000000
--- a/sci-libs/daal4py/files/daal4py-2021.7.1-dont-use-entire-include.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-diff --git a/generator/gen_daal4py.py b/generator/gen_daal4py.py
-index 203c870..7fdac1e 100755
---- a/generator/gen_daal4py.py
-+++ b/generator/gen_daal4py.py
-@@ -34,7 +34,7 @@ from .wrappers import (required, ignore, defaults, has_dist, 
ifaces,
-                        enum_maps, enum_params, wrap_algo, result_to_compute)
- from .wrapper_gen import wrapper_gen
- from .format import mk_var
--from shutil import copytree, rmtree
-+from shutil import copytree, copyfile, rmtree
- from subprocess import call
- 
- try:
-@@ -1045,7 +1045,13 @@ def gen_daal4py(daalroot, outdir, version, 
warn_all=False,
-     head_path = jp("build", "include")
-     algo_path = jp(head_path, "algorithms")
-     rmtree(head_path, ignore_errors=True)
--    copytree(orig_path, head_path)
-+    copytree(jp(orig_path, 'services'), jp(head_path, 'services'))
-+    copytree(jp(orig_path, 'oneapi', 'dal'), jp(head_path, 'oneapi', 'dal'))
-+    copytree(jp(orig_path, 'data_management'), jp(head_path, 
'data_management'))
-+    copytree(jp(orig_path, 'algorithms'), jp(head_path, 'algorithms'))
-+    copyfile(jp(orig_path, 'daal.h'), jp(head_path, 'daal.h'))
-+    copyfile(jp(orig_path, 'daal_sycl.h'), jp(head_path, 'daal_sycl.h'))
-+    copyfile(jp(orig_path, 'oneapi', 'dal.hpp'), jp(head_path, 'oneapi', 
'dal.hpp'))
-     for (dirpath, dirnames, filenames) in os.walk(algo_path):
-         for filename in filenames:
-             call([shutil.which("clang-format"), "-i", jp(dirpath, filename)])
-diff --git a/scripts/build_backend.py b/scripts/build_backend.py
-index a252a1d..c36a312 100755
---- a/scripts/build_backend.py
-+++ b/scripts/build_backend.py
-@@ -116,10 +116,8 @@ def custom_build_cmake_clib(iface, cxx=None):
-     python_library_dir = win_python_path_lib if IS_WIN else 
get_config_var('LIBDIR')
-     numpy_include = np.get_include()
- 
--    if iface == 'dpc':
--        cxx = 'dpcpp'
--    elif cxx is None:
--        raise RuntimeError('CXX compiler shall be specified')
-+    if cxx is None:
-+        cxx=os.environ.get('CXX')
- 
-     cmake_args = [
-         "cmake",
-diff --git a/setup.py b/setup.py
-index 864ab5d..7eaa52f 100755
---- a/setup.py
-+++ b/setup.py
-@@ -47,7 +47,7 @@ if dal_root is None:
- 
- if 'linux' in sys.platform:
-     IS_LIN = True
--    lib_dir = jp(dal_root, 'lib', 'intel64')
-+    lib_dir = jp(dal_root, 'lib64')
- elif sys.platform == 'darwin':
-     IS_MAC = True
-     lib_dir = jp(dal_root, 'lib')
-@@ -306,8 +306,8 @@ def build_oneapi_backend():
-     eca, ela, includes = get_build_options()
- 
-     return build_backend.build_cpp(
--        cc='dpcpp',
--        cxx='dpcpp',
-+        cc=os.environ.get('CC'),
-+        cxx=os.environ.get('CXX'),
-         sources=['src/oneapi/oneapi_backend.cpp'],
-         targetname='oneapi_backend',
-         targetprefix='' if IS_WIN else 'lib',

diff --git 
a/sci-libs/daal4py/files/daal4py-2021.7.1_p20221209-dont-use-entire-include.patch
 
b/sci-libs/daal4py/files/daal4py-2021.7.1_p20221209-dont-use-entire-include.patch
deleted file mode 100644
index 9ccf0f156..000000000
--- 
a/sci-libs/daal4py/files/daal4py-2021.7.1_p20221209-dont-use-entire-include.patch
+++ /dev/null
@@ -1,72 +0,0 @@
-diff --git a/generator/gen_daal4py.py b/generator/gen_daal4py.py
-index 203c870..7fdac1e 100755
---- a/generator/gen_daal4py.py
-+++ b/generator/gen_daal4py.py
-@@ -34,7 +34,7 @@ from .wrappers import (required, ignore, defaults, has_dist, 
ifaces,
-                        enum_maps, enum_params, wrap_algo, result_to_compute)
- from .wrapper_gen import wrapper_gen
- from .format import mk_var
--from shutil import copytree, rmtree
-+from shutil import copytree, copyfile, rmtree
- from subprocess import call
- 
- try:
-@@ -1045,7 +1045,13 @@ def gen_daal4py(daalroot, outdir, version, 
warn_all=False,
-     head_path = jp("build", "include")
-     algo_path = jp(head_path, "algorithms")
-     rmtree(head_path, ignore_errors=True)
--    copytree(orig_path, head_path)
-+    copytree(jp(orig_path, 'services'), jp(head_path, 'services'))
-+    copytree(jp(orig_path, 'oneapi', 'dal'), jp(head_path, 'oneapi', 'dal'))
-+    copytree(jp(orig_path, 'data_management'), jp(head_path, 
'data_management'))
-+    copytree(jp(orig_path, 'algorithms'), jp(head_path, 'algorithms'))
-+    copyfile(jp(orig_path, 'daal.h'), jp(head_path, 'daal.h'))
-+    copyfile(jp(orig_path, 'daal_sycl.h'), jp(head_path, 'daal_sycl.h'))
-+    copyfile(jp(orig_path, 'oneapi', 'dal.hpp'), jp(head_path, 'oneapi', 
'dal.hpp'))
-     for (dirpath, dirnames, filenames) in os.walk(algo_path):
-         for filename in filenames:
-             call([shutil.which("clang-format"), "-i", jp(dirpath, filename)])
-diff --git a/scripts/build_backend.py b/scripts/build_backend.py
-index bb38056..7216983 100755
---- a/scripts/build_backend.py
-+++ b/scripts/build_backend.py
-@@ -115,13 +115,8 @@ def custom_build_cmake_clib(iface, cxx=None):
-     python_library_dir = win_python_path_lib if IS_WIN else 
get_config_var('LIBDIR')
-     numpy_include = np.get_include()
- 
--    if iface == 'dpc':
--        if IS_WIN:
--            cxx = 'icx'
--        else:
--            cxx = 'icpx'
--    elif cxx is None:
--        raise RuntimeError('CXX compiler shall be specified')
-+    if cxx is None:
-+        cxx=os.environ.get('CXX')
- 
-     cmake_args = [
-         "cmake",
-diff --git a/setup.py b/setup.py
-index 00b4f43..76857a2 100755
---- a/setup.py
-+++ b/setup.py
-@@ -47,7 +47,7 @@ if dal_root is None:
- 
- if 'linux' in sys.platform:
-     IS_LIN = True
--    lib_dir = jp(dal_root, 'lib', 'intel64')
-+    lib_dir = jp(dal_root, 'lib64')
- elif sys.platform == 'darwin':
-     IS_MAC = True
-     lib_dir = jp(dal_root, 'lib')
-@@ -313,8 +313,8 @@ def build_oneapi_backend():
-     eca += ['-fsycl']
- 
-     return build_backend.build_cpp(
--        cc=cc,
--        cxx=cxx,
-+        cc=os.environ.get('CC'),
-+        cxx=os.environ.get('CXX'),
-         sources=['src/oneapi/oneapi_backend.cpp'],
-         targetname='oneapi_backend',
-         targetprefix='' if IS_WIN else 'lib',

Reply via email to