aboutsummaryrefslogtreecommitdiff
path: root/rambo/__main__.py
diff options
context:
space:
mode:
authorMatt Rendina <rendinam@users.noreply.github.com>2017-09-06 11:09:37 -0400
committerGitHub <noreply@github.com>2017-09-06 11:09:37 -0400
commit33b7b0951a9f6cc69988de6ab471577863d5c828 (patch)
tree6417e6688517fe5638dfdac7c1d5df6ab87866bb /rambo/__main__.py
parent3615ba7ad8404d2b97db505a88b1875736c1cb00 (diff)
parentde3a23fc8e40f98fb18ccba8574c5726665a2cfc (diff)
downloadrambo-33b7b0951a9f6cc69988de6ab471577863d5c828.tar.gz
Merge pull request #4 from rendinam/numpy_arg
Take numpy version from cmd line argument, not manifest.
Diffstat (limited to 'rambo/__main__.py')
-rwxr-xr-xrambo/__main__.py15
1 files changed, 11 insertions, 4 deletions
diff --git a/rambo/__main__.py b/rambo/__main__.py
index 2c43a88..88570d5 100755
--- a/rambo/__main__.py
+++ b/rambo/__main__.py
@@ -43,6 +43,13 @@ def main(argv=None):
'recipes. "#.#" format. If not specified, the version of python'
' hosting conda_build.api is used.')
parser.add_argument(
+ '--numpy',
+ type=str,
+ help='numpy version to pass to conda machinery when rendering '
+ 'recipes. "#.#" format. If not specified, the version value \'{}\''
+ ' is used.'.format(
+ meta.DEFAULT_MINIMUM_NUMPY_VERSION))
+ parser.add_argument(
'-m',
'--manifest',
type=str,
@@ -91,16 +98,16 @@ def main(argv=None):
if args.python:
versions['python'] = args.python
- versions['numpy'] = meta.DEFAULT_MINIMUM_NUMPY_VERSION
+ if args.numpy:
+ versions['numpy'] = args.numpy
+ else:
+ versions['numpy'] = meta.DEFAULT_MINIMUM_NUMPY_VERSION
if args.platform_arch:
- #meta.Config.platform = args.platform_arch
platform_arch = args.platform_arch
else:
- #meta.Config.platform = get_platform_arch()
platform_arch = get_platform_arch()
-
mset = meta.MetaSet(
recipes_dir,
platform_arch,