Skip to content

Commit

Permalink
Fix ./configure on Windows (tensorflow#11775)
Browse files Browse the repository at this point in the history
* Fix ./configure on Windows

* Disable bitwise_ops_test on Windows
  • Loading branch information
meteorcloudy authored and Vijay Vasudevan committed Jul 27, 2017
1 parent f40189d commit a4a3a33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ -z "$PYTHON_BIN_PATH" ]; then
fi

# Set all env variables
$PYTHON_BIN_PATH configure.py
"$PYTHON_BIN_PATH" configure.py

echo "Configuration finished"

echo "Configuration finished"
4 changes: 2 additions & 2 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def run_gen_git_source(environ_cp):
Args:
environ_cp: copy of the os.environ.
"""
cmd = '%s tensorflow/tools/git/gen_git_source.py --configure %s' % (
cmd = '"%s" tensorflow/tools/git/gen_git_source.py --configure %s' % (
environ_cp.get('PYTHON_BIN_PATH'), os.getcwd())
os.system(cmd)

Expand Down Expand Up @@ -379,7 +379,7 @@ def check_bazel_version(min_version):
min_version: string for minimum bazel version.
"""
try:
curr_version = run_shell('bazel version')
curr_version = run_shell('bazel --batch version')
except subprocess.CalledProcessError:
print('Cannot find bazel. Please install bazel.')
sys.exit(0)
Expand Down
1 change: 1 addition & 0 deletions tensorflow/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,7 @@ cuda_py_test(
":dtypes",
":framework_test_lib",
],
tags = ["no_windows"],
)

cuda_py_test(
Expand Down

0 comments on commit a4a3a33

Please sign in to comment.