Skip to content

Commit

Permalink
Similar fix as: FEniCS/ufl#104
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed May 23, 2022
1 parent caef2c0 commit 5cd9499
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import setuptools

# Can be removed when pip editable user installs are fixed
# https://github.com/pypa/pip/issues/7953
import site
import sys
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]

if sys.version_info < (3, 10):
# Can be removed when pip editable user installs are fixed
# https://github.com/pypa/pip/issues/7953
import site
site.ENABLE_USER_SITE = "--user" in sys.argv[1:]

setuptools.setup()

0 comments on commit 5cd9499

Please sign in to comment.