From b1ee186a712a6dc1c3c28675e9eb33a3805b2a64 Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Thu, 3 Aug 2017 12:50:12 -0400 Subject: Correctly handle platform-arch string --- rambo/meta.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rambo/meta.py') diff --git a/rambo/meta.py b/rambo/meta.py index 24e40a8..4fdd114 100755 --- a/rambo/meta.py +++ b/rambo/meta.py @@ -144,6 +144,7 @@ class MetaSet(object): def __init__(self, directory, + platform_arch, versions, manfile=None, dirty=False): @@ -153,7 +154,8 @@ class MetaSet(object): versions - Dictionary containing python, numpy, etc, version information.''' self.metas = [] - self.platform = Config.platform + self.platform_arch = platform_arch + Config.platform = self.platform_arch.split('-')[0] self.versions = versions self.manfile = manfile self.manifest = None @@ -204,7 +206,7 @@ class MetaSet(object): mf = open(self.manfile, 'r') self.manifest = safe_load(mf) self.channel = self.manifest['channel_URL'].strip('/') - self.channel += '/' + self.platform + self.channel += '/' + self.platform_arch self.versions['numpy'] = str(self.manifest['numpy_version']) def filter_by_manifest(self): -- cgit