setup: add workaround for pypa/pip#7953.

This commit is contained in:
Irides 2021-12-14 08:56:58 -06:00 committed by Catherine
parent 847e46927b
commit b1f5664b05

View file

@ -1,6 +1,10 @@
from setuptools import setup, find_packages
# TODO: Remove when https://github.com/pypa/pip/issues/7953 is resolved
import site, sys; site.ENABLE_USER_SITE = "--user" in sys.argv[1:]
def scm_version():
def local_scheme(version):
if version.tag and not version.distance: