{"action":"closed","issue":{"url":"https://api.github.com/repos/letmaik/rawpy/issues/24","repository_url":"https://api.github.com/repos/letmaik/rawpy","labels_url":"https://api.github.com/repos/letmaik/rawpy/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/letmaik/rawpy/issues/24/comments","events_url":"https://api.github.com/repos/letmaik/rawpy/issues/24/events","html_url":"https://github.com/letmaik/rawpy/issues/24","id":226525784,"number":24,"title":"pip install fails when installing libraw from source","user":{"login":"ngreduce","id":690180,"avatar_url":"https://avatars1.githubusercontent.com/u/690180?v=3","gravatar_id":"","url":"https://api.github.com/users/ngreduce","html_url":"https://github.com/ngreduce","followers_url":"https://api.github.com/users/ngreduce/followers","following_url":"https://api.github.com/users/ngreduce/following{/other_user}","gists_url":"https://api.github.com/users/ngreduce/gists{/gist_id}","starred_url":"https://api.github.com/users/ngreduce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngreduce/subscriptions","organizations_url":"https://api.github.com/users/ngreduce/orgs","repos_url":"https://api.github.com/users/ngreduce/repos","events_url":"https://api.github.com/users/ngreduce/events{/privacy}","received_events_url":"https://api.github.com/users/ngreduce/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-05T09:56:46Z","updated_at":"2017-05-08T23:05:22Z","closed_at":"2017-05-08T23:05:22Z","body":"It happens when you installed libraw from source and there is no package installed.\r\n\r\nError message:\r\n```\r\nlibraw_version.h: No such file or directory\r\n```\r\n\r\nI have fixed it with following patch, but we should find better solution to merge into master.\r\n\r\n```diff\r\ndiff --git a/setup.py b/setup.py\r\nindex 63e1a09..ae20b3d 100644\r\n--- a/setup.py\r\n+++ b/setup.py\r\n@@ -103,6 +103,11 @@ if isWindows or isMac:\r\n     libraw_config_found = True\r\n else:\r\n     use_pkg_config()\r\n+\r\n+    include_dirs += ['/usr/local/include/libraw']\r\n+    library_dirs += ['/usr/local/lib']\r\n+    libraries = ['raw_r']\r\n+    libraw_config_found = True\r\n     \r\n     # check if libraw_config.h exists\r\n     # this header is only installed when using cmake\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"ngreduce"}}