packaging
packaging copied to clipboard
Improve performance in _manylinux.py
This PR makes a few performance improvements:
- Reduces the doubled call to
_is_compatible(arch, glibc_version) - Moves the assignment of the
tagvariable directly into the yield, reducing memory allocation in case this is never used when_is_compatible(arch, glibc_version)is false - Uses an assignment expression for dictionary lookup