This has been forked from 3196f17ff4 Changes initially proposed via https://src.fedoraproject.org/rpms/python-flit-core/pull-request/12
3196f17ff4