[XML-SIG] distutils bug with PyXML 0.6.1, Python 2.0b2 (CVS)

Mark Favas m.favas@per.dem.csiro.au
Mon, 02 Oct 2000 07:20:52 +0800


With the current (Oct 2) CVS versions of PyXML and Python (2), running
"python setup.py install" produces the following glitch: copies all the
relevant files to /usr/local/lib/python2.0/site-packages/_xmlplus and
then tries to compile them all. Unfortunatley, it tries to byte-compile
sgmlop.so, leading to the traceback below. Is this a PyXML mis-setup of
setup.py or a distutils (Python core version) bug?

byte-compiling
/usr/local/lib/python2.0/site-packages/_xmlplus/parsers/xmlproc/xmlutils.py
to xmlutils.pyc
byte-compiling
/usr/local/lib/python2.0/site-packages/_xmlplus/parsers/xmlproc/xmlval.py
to xmlval.pyc
Traceback (most recent call last):
  File "setup.py", line 94, in ?
    ext_modules = ext_modules
  File "/usr/local/lib/python2.0/distutils/core.py", line 138, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.0/distutils/dist.py", line 829, in
run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.0/distutils/dist.py", line 849, in
run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.0/distutils/command/install.py", line
470, in run
    self.run_command(cmd_name)
  File "/usr/local/lib/python2.0/distutils/cmd.py", line 328, in
run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.0/distutils/dist.py", line 849, in
run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.0/distutils/command/install_lib.py", line
61, in 
run
    self.bytecompile(outfiles)
  File "/usr/local/lib/python2.0/distutils/command/install_lib.py", line
88, in 
bytecompile
    verbose=self.verbose, dry_run=self.dry_run)
  File "/usr/local/lib/python2.0/distutils/util.py", line 381, in
byte_compile
    raise ValueError, \
ValueError: invalid filename:
'/usr/local/lib/python2.0/site-packages/_xmlplus/p
arsers/sgmlop.so' doesn't end with '.py'

-- 
Mark Favas  -   m.favas@per.dem.csiro.au
CSIRO, Private Bag No 5, Wembley, Western Australia 6913, AUSTRALIA