diff options
| author | Matt Rendina <rendinam@users.noreply.github.com> | 2017-09-06 11:09:37 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-06 11:09:37 -0400 | 
| commit | 33b7b0951a9f6cc69988de6ab471577863d5c828 (patch) | |
| tree | 6417e6688517fe5638dfdac7c1d5df6ab87866bb | |
| parent | 3615ba7ad8404d2b97db505a88b1875736c1cb00 (diff) | |
| parent | de3a23fc8e40f98fb18ccba8574c5726665a2cfc (diff) | |
| download | rambo-33b7b0951a9f6cc69988de6ab471577863d5c828.tar.gz | |
Merge pull request #4 from rendinam/numpy_arg
Take numpy version from cmd line argument, not manifest.
| -rwxr-xr-x | rambo/__main__.py | 15 | ||||
| -rwxr-xr-x | rambo/meta.py | 1 | 
2 files changed, 11 insertions, 5 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, diff --git a/rambo/meta.py b/rambo/meta.py index 4fdd114..faa0b92 100755 --- a/rambo/meta.py +++ b/rambo/meta.py @@ -207,7 +207,6 @@ class MetaSet(object):          self.manifest = safe_load(mf)          self.channel = self.manifest['channel_URL'].strip('/')          self.channel += '/' + self.platform_arch -        self.versions['numpy'] = str(self.manifest['numpy_version'])      def filter_by_manifest(self):          '''Leave only the recipe metadata entries that appear in the | 
