The problem is that pydoc needs to import the source file in order to generate
the documentation. So in your case the setup() will be executed. This is not a
bug in SPE, but rather in pydoc. The best I can do is see if I can divert pydoc
through a subprocess so SPE won't crash anymore. This is not specific to the
Ubuntu package, and requires a fix upstream. So please report a bug there as
well if you would like to see this fix implemented and refer to this bug:
http://developer.berlios.de/bugs/?group_id=4161
But even if this fix is implemented pydoc will import your setup.py and execute
it. If you want to prevent this, I advise you to put all your code in the
following if statement:
if __name__ == "__main__":
#put your code here
...
** Changed in: spe (Ubuntu)
Status: Incomplete => Confirmed
--
spe crashes when clicking on the PyDoc tab
https://bugs.launchpad.net/bugs/220557
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs