3 ms·
It can, but: - It's slow. - The underlying python code cannot use open() to access its own resources, but must use pkg_resources, and most packages on pypi do
by BiteCode_dev 2y ago
It can, but:
- It's slow.
- The underlying python code cannot use open() to access its own resources, but must use pkg_resources, and most packages on pypi don't do that because most dev don't even know it exists or what problem is soves.
- _ _ file _ _ is not available, breaking a lot of things. zip_safe is a build option, but actual compliance to it is hard work and rare.
- packetlost 2y agoI was thinking more along the lines of using namespaces and FUSE. I'm aware that Python kinda treats them like folders transparently, but not completely for reasons (and more) that you described.
- BiteCode_dev 2y agoThat's a cool idea. Wonder what the FUSE equivalent for windows is.
- packetlost 2y agoProbably Windows Projected FileSystem: https://learn.microsoft.com/en-us/windows/win32/projfs/projected-file-system https://learn.microsoft.com/en-us/windows/win32/projfs/proje...
- networked 2y agoThere seem to be two popular FUSE-like things for Windows: https://github.com/dokan-dev/dokany https://github.com/dokan-dev/dokany and https://github.com/winfsp/winfsp https://github.com/winfsp/winfsp. Both implement a FUSE compatibility API in addition to their own API. A 2016 comparison by the developer of WinFsp says WinFsp is several times faster in performance tests [1]. According to the readme for Donaky [2], since then Dokany got faster. [1] https://github.com/winfsp/winfsp/issues/19#issuecomment-265368159 https://github.com/winfsp/winfsp/issues/19#issuecomment-2653... [2] https://github.com/dokan-dev/dokany/blob/255e4a508b744996191d652af70d912c26c74f56/README.md#benchmark-v1511000-vs-v2031000 https://github.com/dokan-dev/dokany/blob/255e4a508b744996191...