[Python-Dev] Putting a builtin module into a package

Greg Ward gward@python.net
Thu, 23 Aug 2001 16:17:45 -0400


On 21 August 2001, Skip Montanaro said:
> 
>     Jack> Or should I rename the module to an underscore name and simply put
>     Jack> a wrapper module in the package?
> 
> This seems the safest (and the sanest) to me.  I realize you're thinking
> mostly about MacOS, but putting object files inside packages that are
> otherwise Python code makes the whole package platform-dependent.

I think Jack was talking about *built-in* extensions, not .so (or .pyd)
files.  Dynamically loaded extensions are indeed easy -- you just put
'em in the package directory, and it Just Works.  Yes, this means that
people maintaining a multi-architecture installation have to have prefix
!= external-prefix, but they already do: /usr/bin/python is
platform-specific!

        Greg
-- 
Greg Ward - Unix bigot                                  gward@python.net
http://starship.python.net/~gward/
I just read that 50% of the population has below median IQ!