Skip to content

Commit 9dbe572

Browse files
authored
Drop warning on pip<19.3 (#139)
1 parent d87bc1c commit 9dbe572

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

setup.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -267,24 +267,6 @@ def chdir(new_dir):
267267
BLIS_DIR = os.path.join(SRC, "_src")
268268
INCLUDE = os.path.join(PWD, "blis", "_src", "include")
269269
COMPILER = os.environ.get("BLIS_COMPILER", "gcc")
270-
BLIS_REALLY_COMPILE = os.environ.get("BLIS_REALLY_COMPILE", 0)
271-
272-
if not BLIS_REALLY_COMPILE:
273-
try:
274-
import pip
275-
276-
version_parts = pip.__version__.split(".")
277-
major = int(version_parts[0])
278-
minor = int(version_parts[1])
279-
if major < 19 or (major == 19 and minor < 3):
280-
print(
281-
"WARNING: pip versions <19.3 (currently installed: "
282-
+ pip.__version__
283-
+ ") are unable to detect binary wheel compatibility for blis. To avoid a source install with a very long compilation time, please upgrade pip with `pip install --upgrade pip`.\n\nIf you know what you're doing and you really want to compile blis from source, please set the environment variable BLIS_REALLY_COMPILE=1."
284-
)
285-
sys.exit(1)
286-
except Exception:
287-
pass
288270

289271
if len(sys.argv) > 1 and sys.argv[1] == "clean":
290272
clean(PWD)

0 commit comments

Comments
 (0)