mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
Fix ./configure on Windows (#11775)
* Fix ./configure on Windows * Disable bitwise_ops_test on Windows
This commit is contained in:
parent
f40189d262
commit
a4a3a3335b
4
configure
vendored
4
configure
vendored
|
|
@ -8,7 +8,7 @@ if [ -z "$PYTHON_BIN_PATH" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set all env variables
|
# Set all env variables
|
||||||
$PYTHON_BIN_PATH configure.py
|
"$PYTHON_BIN_PATH" configure.py
|
||||||
|
|
||||||
|
echo "Configuration finished"
|
||||||
|
|
||||||
echo "Configuration finished"
|
|
||||||
|
|
@ -240,7 +240,7 @@ def run_gen_git_source(environ_cp):
|
||||||
Args:
|
Args:
|
||||||
environ_cp: copy of the os.environ.
|
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())
|
environ_cp.get('PYTHON_BIN_PATH'), os.getcwd())
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
||||||
|
|
@ -379,7 +379,7 @@ def check_bazel_version(min_version):
|
||||||
min_version: string for minimum bazel version.
|
min_version: string for minimum bazel version.
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
curr_version = run_shell('bazel version')
|
curr_version = run_shell('bazel --batch version')
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
print('Cannot find bazel. Please install bazel.')
|
print('Cannot find bazel. Please install bazel.')
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
|
||||||
|
|
@ -2177,6 +2177,7 @@ cuda_py_test(
|
||||||
":dtypes",
|
":dtypes",
|
||||||
":framework_test_lib",
|
":framework_test_lib",
|
||||||
],
|
],
|
||||||
|
tags = ["no_windows"],
|
||||||
)
|
)
|
||||||
|
|
||||||
cuda_py_test(
|
cuda_py_test(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user