[Distutils] setuptools, eager_resources, and DLLs
Phillip J. Eby
pje at telecommunity.com
Mon Nov 21 01:48:07 CET 2005
At 11:46 PM 11/20/2005 +0100, Gerhard Häring wrote:
>Hello,
>
>I want to make pysqlite installable as an egg.
>
>The normal pysqlite install works like this (win32):
>
>pysqlite2/__init__.py
>pysqlite2/_sqlite.pyd
>pysqlite2/sqlite3.dll
>
>I read that with eager_resources, setuptools can install shared
>libraries too. But I have no idea how to use this feature if the
>extension module is located in a package.
The latest release of setuptools will automatially detect that there is a
.dll present, and add it to the native_libraries.txt file for
you. However, if you want to be explicit, just add
eager_resources=['pysqlite2/sqlite3.dll']
to your setup() arguments.
I actually added the DLL detection specifically because of
pysqlite. :) Mainly, it made me realize that I ought to just detect dll,
so, pyd, and dylib files automatically, so that eager_resources is only
needed for *data* files that may be used by C extensions.
More information about the Distutils-SIG
mailing list