Skip to content
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

feature: Support meson-python's editable installs #229

Closed
pawamoy opened this issue Jan 15, 2024 · 0 comments
Closed

feature: Support meson-python's editable installs #229

pawamoy opened this issue Jan 15, 2024 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@pawamoy
Copy link
Member

pawamoy commented Jan 15, 2024

Is your feature request related to a problem? Please describe.

meson-python puts compiled modules in a build/cp311/src/package folder, while any Python sources remain in src/package, taking precedence over the folder with compiled modules. Therefore Griffe never scans the compiled modules.

Describe the solution you'd like

I suppose that, in some cases such as this one, we could mark some directories as "always scan". The functions that handle pth files and editable modules should therefore return additional information like, "should this directory be always scanned?". The Finder would store them in a map: {"package_name": ["additional_folders"]}, and use that map in its submodules or iter_submodules method.

Describe alternatives you've considered/

/

Additional context

machow/quartodoc#323

@pawamoy pawamoy added the feature New feature or request label Jan 15, 2024
@pawamoy pawamoy self-assigned this Jan 15, 2024
pawamoy added a commit that referenced this issue Jan 15, 2024
@pawamoy pawamoy closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant