Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

Unified Diff: third_party/polymer/components/web-animations-js/tools/python/setup.sh

Issue 592603004: Revert "Polymer elements added to third_party/polymer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/components/web-animations-js/tools/python/setup.sh
diff --git a/third_party/polymer/components/web-animations-js/tools/python/setup.sh b/third_party/polymer/components/web-animations-js/tools/python/setup.sh
deleted file mode 100755
index 37de03282ac55668cd90082d01a6cf56f77f2a94..0000000000000000000000000000000000000000
--- a/third_party/polymer/components/web-animations-js/tools/python/setup.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#! /bin/bash
-
-# Create the python environment needed by run-tests.py and closure-linter and
-# other Python tools.
-
-OLD_PWD=$PWD
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-cd $DIR
-if [ ! -f bin/activate ]; then
- echo "Setting up Python environment in $DIR"
-
- if [ x$(which pip) == x -o x$(which virtualenv) == x ]; then
- cat <<EOF
-Can not autoinstall as pip and virtualenv are not avaliable.
-
-To install 'pip' please do one of the following;
-
-# sudo apt-get install python-pip python-virtualenv
-
-or
-
-# sudo easy_install pip
-# sudo pip install virtualenv
-EOF
- exit 1
- fi
-
- if virtualenv --system-site-packages .; then
- echo -e;
- else
- cat <<EOF
-Was unable to set up the virtualenv environment. Please see output for errors.
-EOF
- exit 1
- fi
-fi
-
-source bin/activate
-
-function ensureRequirementsMet() {
- # Check if installed
- pip install --no-download $@ > /dev/null 2>&1
- if [ $? -ne 0 ]; then
- # Install dependencies
- pip install --upgrade $@
- if [ $? -ne 0 ]; then
- cat <<EOF
-Unable to install dependencies. Please see error output above.
-EOF
- exit 1
- fi
- fi
-}
-
-ensureRequirementsMet 'pip>=1.5'
-ensureRequirementsMet -r requirements.txt
-
-cd $OLD_PWD

Powered by Google App Engine
This is Rietveld 408576698