summaryrefslogtreecommitdiff
path: root/sci-libs/tensorflow/files/tensorflow-2.15.0-0012-installation-remove-cp_local_config_python.patch
blob: e78efd2e99447e5abe2f8c3eb8833648c822fdea (plain)
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
From 90ad87a2d71522412ec80f7f7025d828354a6e20 Mon Sep 17 00:00:00 2001
From: wangjiezhe <wangjiezhe@gmail.com>
Date: Fri, 22 Dec 2023 20:25:52 +0800
Subject: [PATCH 12/13] installation: remove `cp_local_config_python`

Revert https://github.com/tensorflow/tensorflow/commit/a034b3d48a9d3dbccff22800ab4b435a89f45103
---
 .../tools/pip_package/build_pip_package.sh    | 25 -------------------
 1 file changed, 25 deletions(-)

diff --git a/tensorflow/tools/pip_package/build_pip_package.sh b/tensorflow/tools/pip_package/build_pip_package.sh
index 423a79bff78..d8ae485803c 100755
--- a/tensorflow/tools/pip_package/build_pip_package.sh
+++ b/tensorflow/tools/pip_package/build_pip_package.sh
@@ -47,22 +47,6 @@ function cp_external() {
   cp "${src_dir}/local_config_cuda/cuda/cuda/cuda_config.h" "${dest_dir}/local_config_cuda/cuda/cuda/"
 }
 
-function cp_local_config_python() {
-  local src_dir=$1
-  local dest_dir=$2
-  pushd .
-  cd "$src_dir"
-  mkdir -p "${dest_dir}/local_config_python/numpy_include/"
-  cp -r "pypi_numpy/site-packages/numpy/core/include/numpy" "${dest_dir}/local_config_python/numpy_include/"
-  mkdir -p "${dest_dir}/local_config_python/python_include/"
-  if is_windows; then
-    cp -r python_*/include/* "${dest_dir}/local_config_python/python_include/"
-  else
-    cp -r python_*/include/python*/* "${dest_dir}/local_config_python/python_include/"
-  fi
-  popd
-}
-
 function copy_xla_aot_runtime_sources() {
   local src_dir=$1
   local dst_dir=$2
@@ -179,9 +163,6 @@ function prepare_src() {
     cp_external \
       bazel-bin/tensorflow/tools/pip_package/build_pip_package.exe.runfiles \
       "${EXTERNAL_INCLUDES}/"
-    cp_local_config_python \
-      bazel-bin/tensorflow/tools/pip_package/build_pip_package.exe.runfiles \
-      "${EXTERNAL_INCLUDES}/"
     copy_xla_aot_runtime_sources \
       bazel-bin/tensorflow/tools/pip_package/build_pip_package.exe.runfiles/org_tensorflow \
       "${XLA_AOT_RUNTIME_SOURCES}/"
@@ -242,17 +223,11 @@ function prepare_src() {
       cp_external \
         bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow/external \
         "${EXTERNAL_INCLUDES}"
-      cp_local_config_python \
-        bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow/external \
-        "${EXTERNAL_INCLUDES}"
     else
       # New-style runfiles structure (--nolegacy_external_runfiles).
       cp_external \
         bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles \
         "${EXTERNAL_INCLUDES}"
-      cp_local_config_python \
-        bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles \
-        "${EXTERNAL_INCLUDES}"
     fi
     copy_xla_aot_runtime_sources \
       bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow \
-- 
2.41.0