Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaroslavvb/856aae221ae2792da9cbe25836ab235a to your computer and use it in GitHub Desktop.
Save yaroslavvb/856aae221ae2792da9cbe25836ab235a to your computer and use it in GitHub Desktop.
reproducing bazel failure with Python3
cd /Users/yaroslavvb/tfimmediate_hood.cpu_three
git clone https://github.com/yaroslavvb/tensorflow.git
export clonedir=/Users/yaroslavvb/tfimmediate_hood.cpu_three/tensorflow
export dev_branch=hood-devel
export pr_branch=hood
git fetch --all
git checkout $dev_branch
git pull
# install python3 deps
brew install python3
brew install homebrew/python/numpy --with-python3
brew link --overwrite numpy
# run configure, No on everything
./configure
bazel build -c opt tensorflow/contrib/immediate/...
bazel build -c opt --verbose_failures tensorflow/contrib/immediate:image_ops_test
bazel-out/host/bin/external/bazel_tools/tools/python/2to3 --no-diffs --nobackups --write --output-dir bazel-out/local-py3-opt/genfiles/python3/tensorflow/contrib/immediate/python/immediate/extra_tests --write-unchanged-files tensorflow/contrib/immediate/python/immediate/extra_tests/image_ops_test.py
echo $?
# prints 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment