-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
For now I want to gather a few notes about my experimentation with importlib.resources:
- scikit-build-core strips out the suffix of the library, i.e. in the
_editable.pyfileIn principle that seems really nice, but the name would be inconsistent on unix and windows anyway (prefixinstall( {...}, {..., 'spglib.lib.libsymspg': 'spglib/lib/libsymspg.so.2.1.0' }, ... )
libor not). At which point the cmake author would have to make a new library with fixedOUTPUT_NAMEand suffixes, etc. But in that case it is unnecessary to sanitize the file anymore right? I think it is better to just export all files as is and handle these on the python side - After running
importlib.resources.files()the files are not picked when usingiterdir(). Only the files that are actually in that folder and pycache are detected. Presumably the paths from_editable.pyhave to be injected there? Sure enough when doingimportlib.resources.as_fileit redirects to the original source path.
Any clues on where to start to help implement this?
Metadata
Metadata
Assignees
Labels
No labels