Skip to content

Commit 7daefc3

Browse files
committed
Making custom_pip_install.sh Windows friendly.
Towards #1123.
1 parent 21101e0 commit 7daefc3

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

scripts/custom_pip_install.cmd

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
# Copyright 2015 Google Inc. All rights reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
:<<"::batch"
18+
@echo off
19+
pip install --upgrade %*
20+
goto :end
21+
::batch
22+
23+
cd $(dirname $0)
24+
./custom_pip_install.sh $*
25+
exit $?
26+
27+
:<<"::done"
28+
:end
29+
::done

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ envlist =
44

55
[testenv]
66
install_command =
7-
{toxinidir}/scripts/custom_pip_install.sh {opts} {packages}
7+
{toxinidir}/scripts/custom_pip_install.cmd {opts} {packages}
88
commands =
99
nosetests
1010
deps =

0 commit comments

Comments
 (0)