allenai / cached_path

A file utility for accessing both local and remote files through a unified interface.
https://cached-path.readthedocs.io/
Apache License 2.0
36 stars 12 forks source link

Support extracting files from RPM archives. #205

Open LeStahL opened 11 months ago

LeStahL commented 11 months ago

I use cached_path for downloading executable dependencies. This works perfectly on Windows; on Linux however, some dependencies are only available as RPM files. Extracting those is not supported by cached_path yet.

The feature could be implemented using the rpmfile module. The following steps would be necessary for this:

I'm currently working around this by explicitly checking for RPM files when using cached_path and extracting the cached RPMs. It would be much cleaner to rely on cached_path for this however :)

I could write and PR this code if you're interested. Let me know if that's the case.

epwalsh commented 11 months ago

Hey @LeStahL I'd be happy to review a PR for this