Browse Source

fix _python_pkg in linux, add ipython

Kyle P Davis 9 years ago
parent
commit
fa7352885b
2 changed files with 9 additions and 2 deletions
  1. 8 2
      gimmes/_python_pkg
  2. 1 0
      gimmes/ipython

+ 8 - 2
gimmes/_python_pkg

@@ -10,7 +10,13 @@ if ! has "$PKG"; then
 		easy_install -d "$PYTHONPATH" "$PKG"
 		ln -sfv "$PYTHONPATH/$PKG" "$(brew --prefix)/bin/$PKG"
 	else
-		has pip  ||  sudo easy_install "$PKG"
-		sudo pip
+		if ! gimme_pkg "$PKG"; then
+			echo "# WARN: Unable to get system package \"$PKG\", trying pip/easy_install instead ..."
+			if ! has pip; then
+				sudo easy_install "$PKG"
+			else
+				sudo pip install "$PKG"
+			fi
+		fi
 	fi
 fi

+ 1 - 0
gimmes/ipython

@@ -0,0 +1 @@
+_python_pkg