{"comment":{"url":"https://api.github.com/repos/spesmilo/electrum/comments/16358909","html_url":"https://github.com/spesmilo/electrum/commit/60b595356b8c049adc296deb0ffe65b357500ab4#commitcomment-16358909","id":16358909,"user":{"login":"drizzt","id":211316,"avatar_url":"https://avatars.githubusercontent.com/u/211316?v=3","gravatar_id":"","url":"https://api.github.com/users/drizzt","html_url":"https://github.com/drizzt","followers_url":"https://api.github.com/users/drizzt/followers","following_url":"https://api.github.com/users/drizzt/following{/other_user}","gists_url":"https://api.github.com/users/drizzt/gists{/gist_id}","starred_url":"https://api.github.com/users/drizzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drizzt/subscriptions","organizations_url":"https://api.github.com/users/drizzt/orgs","repos_url":"https://api.github.com/users/drizzt/repos","events_url":"https://api.github.com/users/drizzt/events{/privacy}","received_events_url":"https://api.github.com/users/drizzt/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"60b595356b8c049adc296deb0ffe65b357500ab4","created_at":"2016-02-26T18:06:45Z","updated_at":"2016-02-26T18:06:45Z","body":"I do something as:\r\n```\r\npython2 setup.py install --root=\"${pkgdir}\" --optimize=1\r\n```\r\nbut setup.py checks that /usr/share are writable, unlucky it's not writable by a standard user and so it puts some files to ~/.local/share:\r\n```\r\ndrizzt@liara ele % tar tf electrum-2.6-1-any.pkg.tar.xz \r\n.PKGINFO\r\n.BUILDINFO\r\n.INSTALL\r\n.MTREE\r\nhome/\r\nhome/drizzt/\r\nhome/drizzt/.local/\r\nhome/drizzt/.local/share/\r\nhome/drizzt/.local/share/pixmaps/\r\nhome/drizzt/.local/share/applications/\r\nhome/drizzt/.local/share/applications/electrum.desktop\r\nhome/drizzt/.local/share/pixmaps/electrum.png\r\n```\r\nI think it should check for /usr/share inside rootdir"}}