Skip to content

Commit

Permalink
Workaround pip editable install bug
Browse files Browse the repository at this point in the history
Implements workaround for failure to install as editable on certain
cases when --user is mentioned.

Related: pypa/pip#7953
  • Loading branch information
ssbarnea committed Jun 19, 2020
1 parent 7d05deb commit b8dbdd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
# DEALINGS IN THE SOFTWARE.
"""Molecule distribution package setuptools installer."""

import site
import setuptools
import sys

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


if __name__ == "__main__":
Expand Down

0 comments on commit b8dbdd9

Please sign in to comment.