Mailing List Archive

Installing Python/XML on Windows?
Does any documentation exist on this? How do I set up the
paths so that Python can use all the various components of
the package?

Thanks,

- Jon
Installing Python/XML on Windows? [ In reply to ]
From: Jonathan W Hendry <jhendry@shrike.depaul.edu>

Does any documentation exist on this? How do I set up the
paths so that Python can use all the various components of
the package?

Thanks,

- Jon
Installing Python/XML on Windows? [ In reply to ]
From: "Darrell" <news@dorb.com>

Check the doc for the details but in short.
Use site.pth which for me on windows is in my python directory.
It looks something like this.

d:/python/site-packages
d:/python/site-packages/other
d:/python/site-packages/Aycock
d:/python/site-packages/kj

In this same vein I use this to avoid adding each one of these to my system
path.

#!/usr/bin/env python
"""
The .py you want to run is in the python path but not
in your shell path.

I know everyone but me already has this problem solved
in a better way than this. If so please show me the way.

Assuming this is runIt.py then
runIt.py someScript.py arg1 arg2
"""
import sys
import imp

fp, pathname, description = imp.find_module(sys.argv[1])
sys.argv=sys.argv[2:]
md=imp.load_module('__main__', fp, pathname, description)



--
--Darrell
Jonathan W Hendry <jhendry@shrike.depaul.edu> wrote in message
news:377bab1c@news.depaul.edu...
> Does any documentation exist on this? How do I set up the
> paths so that Python can use all the various components of
> the package?
>
> Thanks,
>
> - Jon
Installing Python/XML on Windows? [ In reply to ]
Check the doc for the details but in short.
Use site.pth which for me on windows is in my python directory.
It looks something like this.

d:/python/site-packages
d:/python/site-packages/other
d:/python/site-packages/Aycock
d:/python/site-packages/kj

In this same vein I use this to avoid adding each one of these to my system
path.

#!/usr/bin/env python
"""
The .py you want to run is in the python path but not
in your shell path.

I know everyone but me already has this problem solved
in a better way than this. If so please show me the way.

Assuming this is runIt.py then
runIt.py someScript.py arg1 arg2
"""
import sys
import imp

fp, pathname, description = imp.find_module(sys.argv[1])
sys.argv=sys.argv[2:]
md=imp.load_module('__main__', fp, pathname, description)



--
--Darrell
Jonathan W Hendry <jhendry@shrike.depaul.edu> wrote in message
news:377bab1c@news.depaul.edu...
> Does any documentation exist on this? How do I set up the
> paths so that Python can use all the various components of
> the package?
>
> Thanks,
>
> - Jon
Installing Python/XML on Windows? [ In reply to ]
Jonathan W Hendry (jhendry@shrike.depaul.edu) wrote:
> Does any documentation exist on this? How do I set up the
> paths so that Python can use all the various components of
> the package?
>
> Thanks,
>
> - Jon


Here is a message that should help. You should also be able to
find it in the comp.lang.python archives at DejaNews.

- Dave

==============================


From: digitome@iol.ie (Sean Mc Grath)
Newsgroups: comp.lang.python
Subject: Re: XML-toolkit for Windows - binaries available?
Date: Wed, 16 Jun 1999 19:37:35 GMT
Organization: Ireland On-Line
Lines: 33
Message-ID: <3767fc51.1547455@news.iol.ie>
References: <376701a3.72288277@newssrv> <wkzp208udt.fsf@ifi.uio.no>
NNTP-Posting-Host: dialup-011.ballina.iol.ie
X-Newsreader: Forte Free Agent 1.11/32.235
Xref: ix.netcom.com comp.lang.python:61665

On 16 Jun 1999 09:41:34 +0200, Lars Marius Garshol
<larsga@ifi.uio.no>
wrote:

>
>* Lee Borkman
>|
>| Can anyone help me out in installing from the standard
distribution?
>| I don't have a C-compiler on my system, but I do have
nmake/dmake.
>
>I think the web page is out of date, since the /xml/windows
directory
>in the CVS does contain the .dll files for pyexpat and sgmlop (and
has
>done for quite a while). So just download the ZIP file and they
should
>be there.
>
>If not, send me an email and I'll send them to you.
>
The binaries are there but a bit of fiddling is required to
get things working. (This is from memory but here goes)

The pyexpat and sgmlop dlls have to be copied into the
xml/parsers subdirectory. You also need to edit the
__init__.py file to include 'pyexpat' and 'sgmlop' in
the __all__ string.

Pyexpat requires xmlparse.dll. This dll needs to be
on your path.

I *think* that is what I did to get it all working:-)

Hope it helps,
Sean
Installing Python/XML on Windows? [ In reply to ]
From: dkuhlman@netcom.com (G. David Kuhlman)

Jonathan W Hendry (jhendry@shrike.depaul.edu) wrote:
> Does any documentation exist on this? How do I set up the
> paths so that Python can use all the various components of
> the package?
>
> Thanks,
>
> - Jon


Here is a message that should help. You should also be able to
find it in the comp.lang.python archives at DejaNews.

- Dave

==============================


From: digitome@iol.ie (Sean Mc Grath)
Newsgroups: comp.lang.python
Subject: Re: XML-toolkit for Windows - binaries available?
Date: Wed, 16 Jun 1999 19:37:35 GMT
Organization: Ireland On-Line
Lines: 33
Message-ID: <3767fc51.1547455@news.iol.ie>
References: <376701a3.72288277@newssrv> <wkzp208udt.fsf@ifi.uio.no>
NNTP-Posting-Host: dialup-011.ballina.iol.ie
X-Newsreader: Forte Free Agent 1.11/32.235
Xref: ix.netcom.com comp.lang.python:61665

On 16 Jun 1999 09:41:34 +0200, Lars Marius Garshol
<larsga@ifi.uio.no>
wrote:

>
>* Lee Borkman
>|
>| Can anyone help me out in installing from the standard
distribution?
>| I don't have a C-compiler on my system, but I do have
nmake/dmake.
>
>I think the web page is out of date, since the /xml/windows
directory
>in the CVS does contain the .dll files for pyexpat and sgmlop (and
has
>done for quite a while). So just download the ZIP file and they
should
>be there.
>
>If not, send me an email and I'll send them to you.
>
The binaries are there but a bit of fiddling is required to
get things working. (This is from memory but here goes)

The pyexpat and sgmlop dlls have to be copied into the
xml/parsers subdirectory. You also need to edit the
__init__.py file to include 'pyexpat' and 'sgmlop' in
the __all__ string.

Pyexpat requires xmlparse.dll. This dll needs to be
on your path.

I *think* that is what I did to get it all working:-)

Hope it helps,
Sean