mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-09 06:37:27 +08:00
BLD: conda format for numpy
This commit is contained in:
committed by
Richard Frank
parent
c522594fd9
commit
1c7f40532d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user