-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if an extensition has been compiled for several python version. #407
Comments
Since you seem to have already investigated it some, care to propose a fix here: Lines 196 to 235 in 2cce30a
or here: Lines 719 to 768 in 2cce30a
? |
It looks like something in |
yes,
when processing the true extension, the suffix Perhaps we may add a extra check to see if the I also made a mistake since an arbitrary |
I'd rather something more strict like: if '.cpython-' in module_name:
continue PR welcome. Lines 753 to 761 in 2cce30a
|
Can you show example of an error with |
Agree, it will strongly limit the side effect, but I not sure if it will work on other platform. I will have a look. If
if
if the so file is a valid, non extension so file
I will be happy to contribute. ps : I miss the |
Expected Behavior
I am documenting a package containing fortran extension build with f2py/gfortran/gcc on linux.
Once the package is installed the root folder contains
mypkg.cpython-39-x86_64-linux-gnu.so
which is imported in the__init__.py
file.If I run pdoc, it works fine ;-)
I am using several python version (the package are installed in editable mode) and I can have also
mypkg.cpython-38-x86_64-linux-gnu.so
ormypkg.cpython-310-x86_64-linux-gnu.so
in the same place. Then pdoc crashes.It is noteworthy that arbitrary .so file like
abcd.so
is also a problem.We could expect that pdoc ignore such additional .so file (filter by python version, just pick one, ...)
Steps to Reproduce
pdoc3 mypkg
Additional info
pdoc 0.10.0
The text was updated successfully, but these errors were encountered: