From 1c7f40532d57384bac45ec4a16a3a38d9c4ea03a Mon Sep 17 00:00:00 2001 From: Joe Jevnik Date: Tue, 26 Jan 2016 17:38:52 -0500 Subject: [PATCH] BLD: conda format for numpy --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 82989ff3..71cb5aed 100644 --- a/setup.py +++ b/setup.py @@ -157,6 +157,10 @@ REQ_PATTERN = re.compile("([^=<>]+)([<=>]{1,2})(.*)") def _conda_format(req): + match = REQ_PATTERN.match(req) + if match and match.group(1).lower() == 'numpy': + return 'numpy x.x' + return REQ_PATTERN.sub( lambda m: '%s %s%s' % (m.group(1).lower(), m.group(2), m.group(3)), req,