You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sphinx-apidoc adds both .pyx files and .so files to the generated .rst files. This causes duplication if both are in the same directory, or causes module lookup errors in sphinx-build if they are in different directories.
Support for .pyx was added in #1117 and .so in #2546
For example, if my OUTPUT_PATH is /Users/emily/invest/doc/api-docs and my MODULE_PATH is /Users/emily/invest/lib.macosx-10.9-x86_64-cpython-39, the pattern '*.so' expands to '/Users/emily/invest/doc/api-docs/*.so' because OUTPUT_PATH is the working directory used by path.abspath. This pattern matches none of the .so files I'm trying to exclude in my MODULE_PATH. But '/*.so'doesn't expand, so it matches .so files anywhere, including those in my MODULE_PATH.
Describe the bug
sphinx-apidoc adds both .pyx files and .so files to the generated .rst files. This causes duplication if both are in the same directory, or causes module lookup errors in sphinx-build if they are in different directories.
Support for .pyx was added in #1117 and .so in #2546
How to Reproduce
You will see mymodule listed twice:
Expected behavior
Expect mymodule to be listed once.
Your project
reproducer is standalone
Screenshots
No response
OS
Linux
Python version
3.8.10
Sphinx version
4.4.0
Sphinx extensions
No response
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: