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.py
fileIn 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' }, ... )
lib
or not). At which point the cmake author would have to make a new library with fixedOUTPUT_NAME
and 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.py
have to be injected there? Sure enough when doingimportlib.resources.as_file
it redirects to the original source path.
Any clues on where to start to help implement this?
Metadata
Metadata
Assignees
Labels
No labels