Movatterモバイル変換


[0]ホーム

URL:


Best way of extending Python com or lnk or dll?

Pete Shinnersshredwheat at mediaone.net
Tue Apr 24 12:38:05 EDT 2001


"Owen F. Ransen" <ransen_spam_me_not at nemo.it> wrote> I'd like to extend Python and I'm not yet sure if it would> be best to use COM (of which I know next to nothing) or> a different method.i wouldn't do it with static recompiling. most people aren'ttoo hip on rebuilding their python core just for a new module(especially on Win and Mac (unix is a little better))look into the distutils. they have been shipping with pythonsince 2.0, and now in 2.1 they have support for macos andmetrowerks.first dipping your toes into distutils can take a bit of learning,but look for some examples and the docs, and you won't be in anytrouble.http://www.python.org/doc/current/dist/dist.htmlthis will build your extension as a shared library, and getit all installed properly. from there you are all set to go.


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp