forked from FEniCS/ufl
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Bump min setuptools version and remove setup.py (FEniCS#154)"
This reverts commit 6eeef93. Numpy currently pins setuptools to 59.2 see: numpy/numpy#22623 This commit caused UFL to require a lated setuptools. For complex reasons to do with blas dependencies, Firedrake builds numpy without build isolation. We also install UFL in editable mode, so that can't use build isolation. Consequently we are stuck on the pinned setuptools.
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[build-system] | ||
requires = ["setuptools>=62", "wheel"] | ||
requires = ["setuptools>=58", "wheel"] | ||
|
||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import setuptools | ||
|
||
try: | ||
import pip | ||
|
||
from packaging import version | ||
if version.parse(pip.__version__) < version.parse("21.3"): | ||
# Issue with older version of pip https://github.com/pypa/pip/issues/7953 | ||
import site | ||
import sys | ||
site.ENABLE_USER_SITE = "--user" in sys.argv[1:] | ||
|
||
except ImportError: | ||
pass | ||
|
||
setuptools.setup() |