setup: add workaround for pypa/pip#7953.
This commit is contained in:
parent
847e46927b
commit
b1f5664b05
4
setup.py
4
setup.py
|
@ -1,6 +1,10 @@
|
||||||
from setuptools import setup, find_packages
|
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 scm_version():
|
||||||
def local_scheme(version):
|
def local_scheme(version):
|
||||||
if version.tag and not version.distance:
|
if version.tag and not version.distance:
|
||||||
|
|
Loading…
Reference in a new issue