BLD: conda format for numpy

This commit is contained in:
Joe Jevnik
2016-01-26 17:38:52 -05:00
committed by Richard Frank
parent c522594fd9
commit 1c7f40532d
+4
View File
@@ -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,