浏览代码

fix check for python packages

Kyle P Davis 9 年之前
父节点
当前提交
2701c02ec7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gimmes/_python_pkg

+ 1 - 1
gimmes/_python_pkg

@@ -4,7 +4,7 @@ set -o errexit -o pipefail
 gimme python
 
 PKG=${0##*/}
-if ! has "$PKG"; then
+if ! has "$PKG" && ! python -c "import $PKG" &>/dev/null; then
 	if [[ "$OS" = "Darwin" ]]; then
 		mkdir -p "$PYTHONPATH"
 		easy_install -d "$PYTHONPATH" "$PKG"