-
-
Notifications
You must be signed in to change notification settings - Fork 254
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I was trying to figure out how to include specific stdlib extension modules (e.g. _ssl) but not others (e.g. _asyncio). I found:
PythonPackagingPolicy.extension_module_filter: this lets you set a few general policies likeallorminimal, but doesn't give control on a per-resource level AFAICTPythonPackagingPolicy.register_resource_callback: this gives you a ton of flexibility to configure most resources... but for stdlib extension modules, thePythonExtensionModuleit receives seems to haveadd_include=Falseregardless of the setting of theextension_module_filter.
I think the most intuitive way would be for extension_module_filter to apply first and set the default values for add_include on all the stdlib modules, and then the resource callback would run second and have a chance to override that on a per-module basis. But apparently something else is going on?
Not sure if this is a documentation request or a feature request :-)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working