fabricをWindowsにインストールしてみた
Python製デプロイツールのfabricをインストールメモ。
準備
setuptoolはeasy_installを使うため。ここからセットアップ用スクリプトをダウンロードして、以下のコマンドを叩く
$python ez_install.py
pipのインストール
$easy_install pip
pywinとpycryptのインストール
pycryptoはコンパイル済みのバイナリが必要なようですので、上記からダウンロードできます。
fabricのインストール
$pip install fabric Downloading/unpacking fabric Running setup.py (path:c:\pidekazu\hoge\appdata\local\temp\pip_build_pidekazu\fabric\setup.py) egg_info for package fabric warning: no previously-included files matching '*' found under directory 's tes\docs\_build' warning: no previously-included files matching '*' found under directory 's tes\www\_build' warning: no previously-included files matching '*.pyc' found under director 'tests' warning: no previously-included files matching '*.pyo' found under director 'tests' Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10 in c:\ ython27\lib\site-packages (from fabric) Installing collected packages: fabric Running setup.py install for fabric warning: no previously-included files matching '*' found under directory 's tes\docs\_build' warning: no previously-included files matching '*' found under directory 's tes\www\_build' warning: no previously-included files matching '*.pyc' found under director 'tests' warning: no previously-included files matching '*.pyo' found under director 'tests' Installing fab-script.py script to C:\Python27\Scripts Installing fab.exe script to C:\Python27\Scripts Successfully installed fabric Cleaning up...
実行
$fab Traceback (most recent call last): File "C:\Python27\Scripts\fab-script.py", line 5, in <module> from pkg_resources import load_entry_point File "build\bdist.win-amd64\egg\pkg_resources.py", line 2867, in <module> File "build\bdist.win-amd64\egg\pkg_resources.py", line 432, in _build_master File "build\bdist.win-amd64\egg\pkg_resources.py", line 728, in require File "build\bdist.win-amd64\egg\pkg_resources.py", line 622, in resolve pkg_resources.DistributionNotFound: ecdsa>=0.11
なんかecdsaがないって言われたから、これをインストールする。
ecdsaは暗号化キーを生成するライブラリ。
$pip install ecdsa
かくにん
$fab --version Fabric 1.10.0 Paramiko 1.15.1
よかった。