py2exe - omitting DLLs (not Python extensions!) from the distribution
Chris Liechti
cliechti at gmx.net
Mon Mar 8 16:03:02 EST 2004
Paul Moore <pf_moore at yahoo.co.uk> wrote in news:1xo3yt01.fsf at yahoo.co.uk:
> I am wrapping it up into an EXE using py2exe - the result is very
> nice, and easy to distribute. However, the dependency tracking picks
> up OCI.dll as a dependency of cx_Oracle. Now, OCI.dll is actually an
> Oracle-supplied DLL, part of the Oracle client. I definitely *don't*
> want to include this in my built distribution, as it depends on the
> version of the Oracle client installed, and this may differ between
> the build machine and the target machine.
>
> I've tried the --exclude option, but this doesn't work (probably as
> OCI.dll isn't a Python module).
see the flowing link for a way to pass options to py2exe 0.5:
http://starship.python.net/crew/theller/moin.cgi/PassingOptionsToPy2Exe
then add an option
"dll_excludes" = ["OCI.dll"],
chris
--
Chris <cliechti at gmx.net>
More information about the Python-list
mailing list