差分
この文書の現在のバージョンと選択したバージョンの差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン 両方とも次のリビジョン | ||
programming:python:start [2012/01/08 03:13] yuki |
programming:python:start [2012/02/11 23:52] yuki |
||
---|---|---|---|
ライン 1: | ライン 1: | ||
====== Python ====== | ====== Python ====== | ||
+ | |||
+ | ===== パッケージ管理 ===== | ||
+ | |||
+ | * setup.pyを使う(パッケージングされたファイル郡に含まれていれば) | ||
+ | * <code>python setup.py install</code> | ||
+ | * easy_install | ||
+ | * apt-get install python-setuptools | ||
+ | * proxyは、export http_proxy=http://example.com:8080 した後で。 | ||
+ | * pip | ||
+ | * apt-get install python-pip | ||
+ | * バージョン低すぎて、uninstall出来ないとかなるので、easy_install推奨。 | ||
+ | * easy_install pip | ||
+ | * proxyは、pip install <<package-name>> --proxy=http://example.com:8080 | ||
+ | |||
+ | ===== ライブラリ ===== | ||
* [[.:dpkt:]] | * [[.:dpkt:]] | ||
* [[.:pypcap:]] | * [[.:pypcap:]] | ||
* [[.:matplotlib:]] | * [[.:matplotlib:]] | ||
+ | |||
+ | |||
+ | ===== GUI ===== | ||
+ | |||
* [[.:pyside:]] | * [[.:pyside:]] | ||
* PyQt4のライセンスがGPLだったので、LGPLなPySideを使うことにする | * PyQt4のライセンスがGPLだったので、LGPLなPySideを使うことにする | ||
ライン 12: | ライン 31: | ||
* サンプルはこの辺が良さそう。 | * サンプルはこの辺が良さそう。 | ||
* http://zetcode.com/wxpython/ | * http://zetcode.com/wxpython/ | ||
+ | |||
+ | ===== Document ===== | ||
* [[.:sphinx:]] | * [[.:sphinx:]] | ||
+ | * 自動化の仕組みを作ると尚良い。 | ||
+ | |||
+ | ===== Develop ===== | ||
* 開発環境 | * 開発環境 | ||
- | * [[:mercurial:]] | + | * バージョン管理ツール |
+ | * [[.:mercurial:]] | ||
* Windows | * Windows | ||
* 小さめのスクリプトをクイックスタート | * 小さめのスクリプトをクイックスタート | ||
* PyScripter | * PyScripter | ||
- | * GUIもやるなら何がいいんだろうね。今のところPyScripterでwxPythonもそんなに悪くない。良くもないけど。 | + | * Visual Studio 2010に上乗せ |
+ | * http://pytools.codeplex.com/ | ||
+ | * 要 : Microsoft Visual Studio 2010 Shell (Integrated) | ||
+ | * http://www.microsoft.com/download/en/details.aspx?id=115 | ||
+ | |||
+ | * 独立環境 | ||
+ | * virtualenv | ||
+ | * pip install virtualenv | ||
+ | * 使う時は、以下をセットで。 | ||
+ | * <code>virtualenv project-name --no-site-packages | ||
+ | source ./project-name/bin/activate | ||
+ | # ホスト名に(project-name)が付いたらOK | ||
+ | deactivate | ||
+ | # これで抜ける</code> | ||
* ライブラリのコンパイル | * ライブラリのコンパイル | ||
ライン 30: | ライン 68: | ||
* <code>[build] | * <code>[build] | ||
compiler = mingw32</code> | compiler = mingw32</code> | ||
+ | |||
+ | |||
+ | * メモ | ||
+ | * [[.:rfc5952]] | ||