{"action":"created","issue":{"url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/13","labels_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/13/comments","events_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/13/events","html_url":"https://github.com/SolarTherm/SolarTherm/issues/13","id":116058738,"number":13,"title":"enable testing/running without needing root privileges","user":{"login":"jdpipe","id":87423,"avatar_url":"https://avatars.githubusercontent.com/u/87423?v=3","gravatar_id":"","url":"https://api.github.com/users/jdpipe","html_url":"https://github.com/jdpipe","followers_url":"https://api.github.com/users/jdpipe/followers","following_url":"https://api.github.com/users/jdpipe/following{/other_user}","gists_url":"https://api.github.com/users/jdpipe/gists{/gist_id}","starred_url":"https://api.github.com/users/jdpipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdpipe/subscriptions","organizations_url":"https://api.github.com/users/jdpipe/orgs","repos_url":"https://api.github.com/users/jdpipe/repos","events_url":"https://api.github.com/users/jdpipe/events{/privacy}","received_events_url":"https://api.github.com/users/jdpipe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-11-10T08:12:46Z","updated_at":"2015-11-12T08:35:49Z","closed_at":"2015-11-12T03:37:36Z","body":"It should be possible to build, test and run solartherm without needing to be root.\r\n\r\nI mostly managed to achieve this by\r\n\r\ncmake -DCMAKE_INSTALL_PREFIX=~/.local\r\n\r\nbut the part where it fails is the calls to distutils in the src/python dir. I think this can be fixed by somehow setting distutils.sysconfig.PREFIX, or passing 'prefix' to the setup.py in another way.\r\n\r\nThen, non-root tests could be run after setting\r\n\r\nOPENMODELICALIBRARY\r\nLD_LIBRARY_PATH\r\nPATH\r\nPYTHONPATH\r\n\r\nPotentially we could use a driver script 'st' which could set those variables automatically, depending on the location of the 'st' script...?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/comments/156033747","html_url":"https://github.com/SolarTherm/SolarTherm/issues/13#issuecomment-156033747","issue_url":"https://api.github.com/repos/SolarTherm/SolarTherm/issues/13","id":156033747,"user":{"login":"paul-scott","id":6166217,"avatar_url":"https://avatars.githubusercontent.com/u/6166217?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-scott","html_url":"https://github.com/paul-scott","followers_url":"https://api.github.com/users/paul-scott/followers","following_url":"https://api.github.com/users/paul-scott/following{/other_user}","gists_url":"https://api.github.com/users/paul-scott/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-scott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-scott/subscriptions","organizations_url":"https://api.github.com/users/paul-scott/orgs","repos_url":"https://api.github.com/users/paul-scott/repos","events_url":"https://api.github.com/users/paul-scott/events{/privacy}","received_events_url":"https://api.github.com/users/paul-scott/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T08:35:49Z","updated_at":"2015-11-12T08:35:49Z","body":"Yep exactly.  So it doesn't matter if we don't get it sorted at this stage.\r\n\r\nIt looks like wherever it ends up finding SolarTherm it then includes all these subdirectories.  It probably makes sense to put any C libraries we have under SolarTherm/Resources/Library/."}}