public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/files/
@ 2019-12-04 15:39 Aaron Bauman
  0 siblings, 0 replies; only message in thread
From: Aaron Bauman @ 2019-12-04 15:39 UTC (permalink / raw
  To: gentoo-commits

commit:     37470db19b5f36b121d0ec4183953806eba48ccb
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Wed Dec  4 07:01:04 2019 +0000
Commit:     Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Wed Dec  4 15:38:55 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37470db1

sci-libs/tensorflow-estimator: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/13862
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>

 ...-modularize-build-script-to-allow-distros.patch | 153 ---------------------
 1 file changed, 153 deletions(-)

diff --git a/sci-libs/tensorflow-estimator/files/0001-pip_package-modularize-build-script-to-allow-distros.patch b/sci-libs/tensorflow-estimator/files/0001-pip_package-modularize-build-script-to-allow-distros.patch
deleted file mode 100644
index 140e23c84bb..00000000000
--- a/sci-libs/tensorflow-estimator/files/0001-pip_package-modularize-build-script-to-allow-distros.patch
+++ /dev/null
@@ -1,153 +0,0 @@
-From 897b25418ae0f77bcee7fdd7070d5c22677dc218 Mon Sep 17 00:00:00 2001
-From: Jason Zaman <jason@perfinion.com>
-Date: Sat, 2 Feb 2019 15:19:44 +0800
-Subject: [PATCH] pip_package: modularize build script to allow distros to
- install more flexibly
-
-Gentoo Linux handles python modules slightly differently and packaging
-wheels is complicated. We prefer to run setup.py directly ourselves
-rather than build a wheel and then install from there.
-
-This modularizes build_pip_package.sh to allow running parts separately.
-using --src srcdir will prepare the package in a known dir so the distro
-package can take it from there. If only dstdir is given (either with
---dst or as the only argument to preserve backwards compat) then
-behaviour is the same as before, the sources are prepared and the wheel
-is built and placed in dstdir.
-
-Signed-off-by: Jason Zaman <jason@perfinion.com>
----
- .../tools/pip_package/build_pip_package.sh    | 73 +++++++++++++++++--
- 1 file changed, 66 insertions(+), 7 deletions(-)
-
-diff --git a/tensorflow_estimator/tools/pip_package/build_pip_package.sh b/tensorflow_estimator/tools/pip_package/build_pip_package.sh
-index 5d06dd6..1667169 100755
---- a/tensorflow_estimator/tools/pip_package/build_pip_package.sh
-+++ b/tensorflow_estimator/tools/pip_package/build_pip_package.sh
-@@ -23,10 +23,8 @@ function real_path() {
-   is_absolute "$1" && echo "$1" || echo "$PWD/${1#./}"
- }
- 
--function build_wheel() {
-+function prepare_src() {
-   TMPDIR="$1"
--  DEST="$2"
--  PROJECT_NAME="$3"
- 
-   mkdir -p "$TMPDIR"
-   echo $(date) : "=== Preparing sources in dir: ${TMPDIR}"
-@@ -67,6 +65,17 @@ function build_wheel() {
-     touch "${TMPDIR}/tensorflow_estimator/contrib/estimator/python/__init__.py"
-     touch "${TMPDIR}/tensorflow_estimator/contrib/estimator/python/estimator/__init__.py"
-   fi
-+}
-+
-+function build_wheel() {
-+  if [ $# -lt 2 ] ; then
-+    echo "No src and dest dir provided"
-+    exit 1
-+  fi
-+
-+  TMPDIR="$1"
-+  DEST="$2"
-+  PROJECT_NAME="$3"
- 
-   pushd ${TMPDIR} > /dev/null
-   echo $(date) : "=== Building wheel"
-@@ -75,15 +84,39 @@ function build_wheel() {
-   cp dist/* ${DEST}
-   popd > /dev/null
-   echo $(date) : "=== Output wheel file is in: ${DEST}"
--  rm -rf "${TMPDIR}"
-+}
-+
-+function usage() {
-+  echo "Usage:"
-+  echo "$0 [--src srcdir] [--dst dstdir] [options]"
-+  echo "$0 dstdir [options]"
-+  echo ""
-+  echo "    --src                 prepare sources in srcdir"
-+  echo "                              will use temporary dir if not specified"
-+  echo ""
-+  echo "    --dst                 build wheel in dstdir"
-+  echo "                              if dstdir is not set do not build, only prepare sources"
-+  echo ""
-+  echo "  Options:"
-+  echo "    --project_name <name> set project name to name"
-+  echo "    --nightly             build tensorflow_estimator nightly"
-+  echo ""
-+  exit 1
- }
- 
- function main() {
-   NIGHTLY_BUILD=0
-+  PROJECT_NAME=""
-+  SRCDIR=""
-+  DSTDIR=""
-+  CLEANSRC=1
- 
-   while true; do
-     if [[ -z "$1" ]]; then
-       break
-+    elif [[ "$1" == "--help" ]]; then
-+      usage
-+      exit 1
-     elif [[ "$1" == "--nightly" ]]; then
-       NIGHTLY_BUILD=1
-     elif [[ "$1" == "--project_name" ]]; then
-@@ -92,6 +125,19 @@ function main() {
-         break
-       fi
-       PROJECT_NAME="$1"
-+    elif [[ "$1" == "--src" ]]; then
-+      shift
-+      if [[ -z "$1" ]]; then
-+        break
-+      fi
-+      SRCDIR="$(real_path $1)"
-+      CLEANSRC=0
-+    elif [[ "$1" == "--dst" ]]; then
-+      shift
-+      if [[ -z "$1" ]]; then
-+        break
-+      fi
-+      DSTDIR="$(real_path $1)"
-     else
-       DSTDIR="$(real_path $1)"
-     fi
-@@ -105,16 +151,29 @@ function main() {
-     fi
-   fi
- 
--  SRCDIR="$(mktemp -d -t tmp.XXXXXXXXXX)"
--
--  if [[ -z "$DSTDIR" ]]; then
-+  if [[ -z "$DSTDIR" ]] && [[ -z "$SRCDIR" ]]; then
-     echo "No destination dir provided"
-+    usage
-     exit 1
-   fi
- 
-+  if [[ -z "$SRCDIR" ]]; then
-+    # make temp srcdir if none set
-+    SRCDIR="$(mktemp -d -t tmp.XXXXXXXXXX)"
-+  fi
- 
-+  prepare_src "$SRCDIR"
-+
-+  if [[ -z "$DSTDIR" ]]; then
-+      # only want to prepare sources
-+      exit
-+  fi
- 
-   build_wheel "$SRCDIR" "$DSTDIR" "$PROJECT_NAME"
-+
-+  if [[ $CLEANSRC -ne 0 ]]; then
-+    rm -rf "${TMPDIR}"
-+  fi
- }
- 
- main "$@"
--- 
-2.19.2
-


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-04 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-04 15:39 [gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorflow-estimator/files/ Aaron Bauman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox