diff options
author | Yun Peng <pcloudy@google.com> | 2017-07-27 20:09:24 +0200 |
---|---|---|
committer | Vijay Vasudevan <vrv@google.com> | 2017-07-27 11:09:24 -0700 |
commit | a4a3a3335bd273e6224d16a934b59531ef239893 (patch) | |
tree | 1853e0cfc4214be3075a288dc2abdfbf6a1302ce | |
parent | f40189d262bb41b7b85a95c3ceeac6f269ae9a0a (diff) |
Fix ./configure on Windows (#11775)
* Fix ./configure on Windows
* Disable bitwise_ops_test on Windows
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.py | 4 | ||||
-rw-r--r-- | tensorflow/python/BUILD | 1 |
3 files changed, 5 insertions, 4 deletions
@@ -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"
\ No newline at end of file diff --git a/configure.py b/configure.py index e39bd53efb..edb0a47ee6 100644 --- a/configure.py +++ b/configure.py @@ -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) @@ -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) diff --git a/tensorflow/python/BUILD b/tensorflow/python/BUILD index 2c216300d1..adbe53a3e3 100644 --- a/tensorflow/python/BUILD +++ b/tensorflow/python/BUILD @@ -2177,6 +2177,7 @@ cuda_py_test( ":dtypes", ":framework_test_lib", ], + tags = ["no_windows"], ) cuda_py_test( |