py2exe で Oracle に接続する exe を作成
http://sourceforge.net/projects/py2exe/files/py2exe/0.6.9/py2exe-0.6.9.win32-py2.6.exe/download をインストール。
setup.py
from distutils.core import setup import py2exe setup(options = {"py2exe": { 'bundle_files': 2, 'compressed': True, 'dll_excludes': ['oci.dll']}}, console = ['oracle_test.py'])
setup(options 以下の記述がないと、oracle_test.exe 実行時にエラーになった。
dll_excludes が必要なのかな?
oracle_test.py は、上のエントリのコードに import decimal を加えた物。
これがないと oracle_test.exe の実行時にエラーになった。
exe の作成は python setup.py py2exe 。