Description: Generate_classic_files_instead_of_WHL
 .
 tensorboard (0.1.7-1) unstable; urgency=medium
 .
   * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
Author: Adam Cecile <acecile@le-vert.net>

---
Origin: other
Forwarded: not-needed
Last-Update: 2017-09-28

Index: tensorboard-1.6.0/tensorboard/pip_package/build_pip_package.sh
===================================================================
--- tensorboard-1.6.0.orig/tensorboard/pip_package/build_pip_package.sh
+++ tensorboard-1.6.0/tensorboard/pip_package/build_pip_package.sh
@@ -32,11 +32,6 @@ function main() {
   TMPVENVDIR="${TMPDIR}/venv"
   RUNFILES="bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard"
 
-  # Check that virtualenv is installed.
-  if [[ -z "$(which virtualenv)" ]]; then
-    die "ERROR: virtualenv is required, but does not appear to be installed."
-  fi
-
   echo $(date) : "=== Using tmpdir: ${TMPDIR}"
 
   bazel build //tensorboard/pip_package:build_pip_package
@@ -53,22 +48,11 @@ function main() {
   pushd ${TMPDIR} >/dev/null
   rm -f MANIFEST
 
-  echo $(date) : "=== Activating virtualev ==="
-  virtualenv "${TMPVENVDIR}"
-  export VIRTUAL_ENV="${TMPVENVDIR}"
-  export PATH="${TMPVENVDIR}/bin:${PATH}"
-  unset PYTHON_HOME
-
-  # Require wheel for bdist_wheel command, and setuptools 36.2.0+ so that
-  # env markers are handled (https://github.com/pypa/setuptools/pull/1081)
-  pip install -U wheel setuptools>=36.2.0
-
-  echo $(date) : "=== Building python2 wheel in $PWD"
-  python setup.py bdist_wheel --python-tag py2 >/dev/null
-  echo $(date) : "=== Building python3 wheel in $PWD"
-  python setup.py bdist_wheel --python-tag py3 >/dev/null
-  mkdir -p ${DEST}
-  cp dist/* ${DEST}
+  echo $(date) : "=== Building python2 package to ${DEST}/python-tensorboard"
+  python setup.py install --root ${DEST}/python-tensorboard --install-layout=deb
+  echo $(date) : "=== Building python3 package to ${DEST}/python3-tensorboard"
+  python3 setup.py install --root ${DEST}/python3-tensorboard --install-layout=deb
+
   popd >/dev/null
   rm -rf ${TMPDIR}
   echo $(date) : "=== Output wheel files are in: ${DEST}"
