[XML-SIG] Re: Using Installer with PyXML

David Bolen db3l at fitlinxx.com
Mon Jan 22 16:06:29 EST 2001


"Martin v. Loewis" <martin at mira.cs.tu-berlin.de> writes:

> > I tested your suggestion of using "from xml.parsers import expat"
> > vs.  "import pyexpat" and that works fine, but I'm not sure what the
> > benefit of using that form is.
> 
> To get independent from the location of the pyexpat module. If you say
> "import pyexpat", and you use PyXML, you still won't get the PyXML
> version of that module - this lives in xml.parsers.pyexpat.

BTW, this resolves the issue I mentioned in the other thread on this
point, since the reference to expat then references pyexpat, which at
run time (in the installer output product) will be found in the root
of the distribution directory as the pyd.  You still get the right
variant (PyXML) of the pyd, since the installer will copy the pyd from
the xml.parsers directory as it determines what is in use.  And no
explicit misc= entry for the pyd file should be necessary in the
installer configuration file.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list