Perl also uses a platform-specific directory structure. Another complication is that being noarch doesn't guarantee that a port doesn't install different files on different OS versions.
For Python, I think it should be possible to parse some metadata or at least the filenames of the available wheels in order to figure out if the package is architecture and/or platform independent.
Perl also uses a platform-specific directory structure. Another complication is that being noarch doesn't guarantee that a port doesn't install different files on different OS versions.
For Python, I think it should be possible to parse some metadata or at least the filenames of the available wheels in order to figure out if the package is architecture and/or platform independent.