Summary: | common filenames of .so modules are not recognized (after pip3 install) | ||||||
---|---|---|---|---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> | ||||
Component: | python3 | Assignee: | Grigory Ustinov <grenka> | ||||
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus | ||||
Severity: | normal | ||||||
Priority: | P3 | CC: | george, glebfm, grenka, imz, vitty, vseleznv | ||||
Version: | unstable | ||||||
Hardware: | all | ||||||
OS: | Linux | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 33211 | ||||||
Attachments: |
|
Description
Ivan Zakharyaschev
2017-03-06 22:22:01 MSK
This must be determined by the following parameter -- http://stackoverflow.com/a/38525461/94687 : $ python3 Python 3.5.1 (default, May 5 2016, 10:50:17) [GCC 5.3.1 20151207 (ALT Linux 5.3.1-alt3)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from distutils.sysconfig import get_config_var >>> get_config_var('EXT_SUFFIX') '.cpython-35m.so' >>> In Sisyphus, the fix of EXT_SUFFIX Python config parameter (bringing it to the more common format) will be convenient to make together with the move to Python 3.6. (The binary modules would anyway require a rebuild.) (As for p8, this should be decided separately. Recognizing the common suffix in addition to ours could be a solution with little hassle; otherwise, if we change this parameter for the newly built modules, we'd need to track this with Provides/Requires to ensure both kinds of modules would be usable.) (In reply to comment #2) > In Sisyphus, the fix of EXT_SUFFIX Python config parameter (bringing it to the > more common format) will be convenient to make together with the move to Python > 3.6. (The binary modules would anyway require a rebuild.) This is quite clear how to do. > (As for p8, this should be decided separately. Recognizing the common suffix in > addition to ours could be a solution with little hassle; otherwise, if we > change this parameter for the newly built modules, we'd need to track this with > Provides/Requires to ensure both kinds of modules would be usable.) This is less clear and requires hacking of a different piece of code (module finding). Patches (and tasks for p8) are welcome! See also: https://bugs.python.org/issue16754 which introduced the use of EXT_SUFFIX into the code. Created attachment 7140 [details]
new triplet removal patch
This new triplet removal patch provides both two-part and five-part EXT_SUFFIX (e. g. cpython-35m and cpython-35m-i386-linux-gnu) when searching for .so module, so 3rd-party wheels can be installed and used along with ALT native packages.
This new triplet removal patch provides both two-part and five-part EXT_SUFFIX (e. g. cpython-35m and cpython-35m-i386-linux-gnu) when searching for .so module, so 3rd-party wheels can be installed and used along with ALT native packages. See also task 185232 * Mon Jul 10 2017 Fr. Br. George <george@altlinux.ru> 3.5.1-alt9 - Add PLATFORM_TRIPLET suffix for binary module search |