Seems like this needs to be fixed in either [setuptools](https://github.com/openembedded/oe-core/blob/master/meta/classes/setuptools.bbclass) or [distutils](https://github.com/openembedded/oe-core/blob/master/meta/classes/distutils.bbclass).