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.9.0/tensorboard/pip_package/build_pip_package.sh
===================================================================
--- tensorboard-1.9.0.orig/tensorboard/pip_package/build_pip_package.sh
+++ tensorboard-1.9.0/tensorboard/pip_package/build_pip_package.sh
@@ -43,11 +43,11 @@ smoke() {
 }
 
 set -x
-command -v curl >/dev/null
-command -v perl >/dev/null
+#command -v curl >/dev/null
+#command -v perl >/dev/null
 command -v python2 >/dev/null
 command -v python3 >/dev/null
-command -v virtualenv >/dev/null
+#command -v virtualenv >/dev/null
 [ -d "${RUNFILES}" ]
 
 dest=/tmp/tensorboard
@@ -85,19 +85,24 @@ find tensorboard -name \*.py |
     s/^from bleach/from tensorboard._vendor.bleach/
   '
 
-virtualenv venv
-export VIRTUAL_ENV=venv
+#virtualenv venv
+#export VIRTUAL_ENV=venv
 export PATH="$PWD/venv/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 -qU wheel 'setuptools>=36.2.0'
+#pip install -qU wheel 'setuptools>=36.2.0'
 
-python setup.py bdist_wheel --python-tag py2 >/dev/null
-python setup.py bdist_wheel --python-tag py3 >/dev/null
+#python setup.py bdist_wheel --python-tag py2 >/dev/null
+#python setup.py bdist_wheel --python-tag py3 >/dev/null
+DEST=$1
+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
 
-smoke 2
-smoke 3
+#smoke 2
+#smoke 3
 
-ls -hal "$PWD/dist"
+#ls -hal "$PWD/dist"
