オプションがあります。 distutilsの設定スクリプトを実行すると、 python setup.py build
の場合は、ディレクトリをpython setup.py build -b ..\somewhere\else\
と指定できます。
また、オプションdictのコードで設定することもできます。例えば私は2つのソリューションをいくつかのわずかに異なる振る舞いを持っていた
options = {
'includes': ['numpy.core._methods'],
'excludes': ['tkinter'],
'build_exe': '..\\somewhere\\else\\'
}
setup(name="Application", options=options, executables=[Executable("run.py", base=None)]
ノートにセットアップスクリプトで
options = {
'includes': ['numpy.core._methods'],
'excludes': ['tkinter']
}
setup(name="Application", options=options, executables=[Executable("run.py", base=None)]
を変更。最初はすべてのファイルをsomewhere\else
の中に置きますが、2番目のファイルはすべてsomewhere\else
に入れるだけです。