Skip to content

Commit

Permalink
Making custom_pip_install.sh Windows friendly.
Browse files Browse the repository at this point in the history
Towards #1123.
  • Loading branch information
dhermes committed Jan 4, 2016
1 parent f220a36 commit bbed9d1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions scripts/custom_pip_install.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

# Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

:<<"::batch"
@echo off
pip install --upgrade %*
goto :end
::batch

cd $(dirname $0)
./custom_pip_install.sh "$@"
exit $?

:<<"::done"
:end
::done
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ envlist =

[testenv]
install_command =
{toxinidir}/scripts/custom_pip_install.sh {opts} {packages}
{toxinidir}/scripts/custom_pip_install.cmd {opts} {packages}
commands =
nosetests
deps =
Expand Down

0 comments on commit bbed9d1

Please sign in to comment.