{"action":"created","issue":{"url":"https://api.github.com/repos/hpcugent/easybuild/issues/144","labels_url":"https://api.github.com/repos/hpcugent/easybuild/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/hpcugent/easybuild/issues/144/comments","events_url":"https://api.github.com/repos/hpcugent/easybuild/issues/144/events","html_url":"https://github.com/hpcugent/easybuild/issues/144","id":100587959,"number":144,"title":"provide access to architecture type via easyconfig constants","user":{"login":"dominikborkowski","id":3235494,"avatar_url":"https://avatars.githubusercontent.com/u/3235494?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikborkowski","html_url":"https://github.com/dominikborkowski","followers_url":"https://api.github.com/users/dominikborkowski/followers","following_url":"https://api.github.com/users/dominikborkowski/following{/other_user}","gists_url":"https://api.github.com/users/dominikborkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikborkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikborkowski/subscriptions","organizations_url":"https://api.github.com/users/dominikborkowski/orgs","repos_url":"https://api.github.com/users/dominikborkowski/repos","events_url":"https://api.github.com/users/dominikborkowski/events{/privacy}","received_events_url":"https://api.github.com/users/dominikborkowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-12T16:59:09Z","updated_at":"2015-08-13T13:41:38Z","closed_at":null,"body":"A lot of python based software ends up installed with paths including both platform and architecture. Currently there are two ways that easyconfigs deal sanity_check_paths for those items:\r\n- omit checking for the resulting files/eggs/dirs\r\n- hardcode platform and architecture in the path, for example:\r\n\r\nsanity_check_paths = {\r\n    'files': [],\r\n    'dirs': [('%s-%%(version)s-py%s.egg' % (pylibdir, pyshortver),\r\n              '%s-%%(version)s-py%s-linux-x86_64.egg' % (pylibdir, pyshortver))],\r\n}\r\n\r\nEB provides some constants, including OS_TYPE. It would be great to have an additional constant for the architecture, eg: x86_64, so we could avoid hardcoding the paths or having incomplete checks.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/hpcugent/easybuild/issues/comments/130676154","html_url":"https://github.com/hpcugent/easybuild/issues/144#issuecomment-130676154","issue_url":"https://api.github.com/repos/hpcugent/easybuild/issues/144","id":130676154,"user":{"login":"dominikborkowski","id":3235494,"avatar_url":"https://avatars.githubusercontent.com/u/3235494?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikborkowski","html_url":"https://github.com/dominikborkowski","followers_url":"https://api.github.com/users/dominikborkowski/followers","following_url":"https://api.github.com/users/dominikborkowski/following{/other_user}","gists_url":"https://api.github.com/users/dominikborkowski/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikborkowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikborkowski/subscriptions","organizations_url":"https://api.github.com/users/dominikborkowski/orgs","repos_url":"https://api.github.com/users/dominikborkowski/repos","events_url":"https://api.github.com/users/dominikborkowski/events{/privacy}","received_events_url":"https://api.github.com/users/dominikborkowski/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T13:41:38Z","updated_at":"2015-08-13T13:41:38Z","body":"Having SYS_ARCH would work. While like most installations we run on Linux and x86_64, we are entertaining the possibility of using Power architecture for some things. This would provide a cleaner way of dealing with those pesky python results, rather than having to hardcode them.\r\n\r\nThanks!"}}