[4suite] setup.py

Martin v. Loewis martin at loewis.home.cs.tu-berlin.de
Fri Feb 23 14:02:48 MST 2001


> Okay, so I gave up on distutils and decided to switch to python 2.0
> instead.

Can you elaborate why you gave up? Installing distutils is
straight-forward.

> Now, however, the setup.py renames your xml package to _xmlplus, and
> doesn't update the .py files that use it so they still expect your
> package to be called xml.  I did a search and replace throughout all
> of the files and converted "from xml\." to "from _xmlplus." and it
> all runs.

That should not be necessary. When you do "import xml" in Python 2.0,
it will automatically import _xmlplus instead. So no need to change
anything. Are you sure you've installed Python 2.0, and used it to
invoke setup.py?

> Yet, when I run it on a test case everything crashes with an error
> concerning the token '/'.  i'm hoping this is because I search and
> replace'd and damaged something; it might also be due to the fact
> that I'm trying to avoid installing 4ss in /usr/local, and instead
> put it in my home irectory.

Hard to say; you'd have to provide the exact code you try to run, and
the exact error message that it produces.

> It says on your website that 4ss is compatible with python 2.0, but it
> didn't want to work for me.  Did I forget some switch or something?

Again, hard to tell; you'll have to give a command-by-command history
of what you did, mentioning the exact files that you have used in each
step, and the URLs where you got these files from. If you give some
more clues, this level of detail may not be necessary.

Regards,
Martin



More information about the 4suite mailing list