[Distutils] Re: [PSA MEMBERS] packages in Python

Fred L. Drake Fred L. Drake, Jr." <fdrake@acm.org
Fri, 21 May 1999 15:05:18 -0400 (EDT)


Perry A. Stoll writes:
 > I don't think this is the case that's causing problem. The problem is when a
 > submodule on a package is *always* platform dependent (because, for example,
 > it interfaces to another library).

Perry,
  I think in this case the only problem is getting all the right
directories on the package's __path__; am I missing something?  It
avoids the need for the "conditional" import, but that's largely
separate.
  If there are also platform independent modules, this is an issue; if 
*all* the "real" modules are platform dependent, I think the
duplication of the (essentially empty) __init__.py* is something we
can allow, and just install the package entirely under $exec_prefix.
  Are there problems that I'm missing that can't be solved by locating 
all the parallel package directories and placing them on the package's 
__path__?  I think the multiple SGI binary formats can be handled by
using a different $exec_prefix for each (it sounds like anything less
won't get the job done anyway for that case).


  -Fred

--
Fred L. Drake, Jr.	     <fdrake@acm.org>
Corporation for National Research Initiatives