Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Workaround for editable installs
Browse files Browse the repository at this point in the history
Related: pypa/pip#7953
  • Loading branch information
ssbarnea committed Oct 10, 2020
1 parent 4b89a90 commit 95268a0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# !/usr/bin/env python
import site
import sys

import setuptools

# See https://github.com/pypa/pip/issues/7953
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]


if __name__ == "__main__":
setuptools.setup(use_scm_version=True)
setuptools.setup(
use_scm_version={"local_scheme": "no-local-version"},
setup_requires=["setuptools_scm[toml]>=3.5.0"],
)

0 comments on commit 95268a0

Please sign in to comment.