--introspect-c-modules loads foreign extension modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pydoctor |
New
|
Undecided
|
Unassigned |
Bug Description
If I build Twisted's extension modules using PyPy and then run pydoctor using CPython, passing the --introspect-
Traceback (most recent call last):
File "/home/
sys.
File "/home/
system.
File "/home/
self.
File "/home/
self.
File "/home/
(suffix, mode, type))
ImportError: /home/exarkun/
It seems the logic for deciding whether a .so should be loaded as an extension or not needs a little more smarts.
Do you think just catching ImportError is enough? Clearly extension modules _can_ raise any error which loaded (the can also call abort() I guess).