Skip to content

Commit 1213956

Browse files
committed
build: introduce configure.cmd
This adds a batch file to invoke the python configure script on Windows. This mirrors the script for Linux and macOS (`configure`). This is needed since Windows does not support shebangs, and will not invoke the python script as a result without the explicit interpreter.
1 parent 82e1cbd commit 1213956

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

configure.cmd

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
:: Copyright 2019 The TensorFlow Authors. All Rights Reserved.
2+
::
3+
:: Licensed under the Apache License, Version 2.0 (the "License");
4+
:: you may not use this file except in compliance with the License.
5+
:: You may obtain a copy of the License at
6+
::
7+
:: http://www.apache.org/licenses/LICENSE-2.0
8+
::
9+
:: Unless required by applicable law or agreed to in writing, software
10+
:: distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11+
:: WARRANTIES OR CONDITIONS OF ANY KIND< either express or implied. See the
12+
:: License for the specific language governing permissions and limitations under
13+
:: the License.
14+
15+
@echo off
16+
17+
set configure_dir=%~dp0
18+
set configure_dir=%configure_dir:~0,-1%
19+
python %configure_dir%\configure.py %* || ( exit /b )
20+
echo Configuration finished

0 commit comments

Comments
 (0)