{"action":"created","issue":{"url":"https://api.github.com/repos/mapnik/python-mapnik/issues/64","labels_url":"https://api.github.com/repos/mapnik/python-mapnik/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/mapnik/python-mapnik/issues/64/comments","events_url":"https://api.github.com/repos/mapnik/python-mapnik/issues/64/events","html_url":"https://github.com/mapnik/python-mapnik/pull/64","id":114418513,"number":64,"title":"Support LIB_DIR_NAME environment variable for custom mapniklibpath","user":{"login":"sebastic","id":4605306,"avatar_url":"https://avatars.githubusercontent.com/u/4605306?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastic","html_url":"https://github.com/sebastic","followers_url":"https://api.github.com/users/sebastic/followers","following_url":"https://api.github.com/users/sebastic/following{/other_user}","gists_url":"https://api.github.com/users/sebastic/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastic/subscriptions","organizations_url":"https://api.github.com/users/sebastic/orgs","repos_url":"https://api.github.com/users/sebastic/repos","events_url":"https://api.github.com/users/sebastic/events{/privacy}","received_events_url":"https://api.github.com/users/sebastic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-31T16:05:15Z","updated_at":"2015-11-27T11:40:43Z","closed_at":"2015-11-27T10:53:21Z","pull_request":{"url":"https://api.github.com/repos/mapnik/python-mapnik/pulls/64","html_url":"https://github.com/mapnik/python-mapnik/pull/64","diff_url":"https://github.com/mapnik/python-mapnik/pull/64.diff","patch_url":"https://github.com/mapnik/python-mapnik/pull/64.patch"},"body":"As reported in [Debian Bug #803564](https://bugs.debian.org/803564) and issue #62, the hardcoded `mapniklibpath` in `paths.py` is not correct when mapnik has been built using a custom `LIB_DIR_NAME`.\r\n\r\nThe mapnik Debian package is built using `LIB_DIR_NAME=/mapnik/3.0` for which this change adds support in `setup.py` for the python-mapnik build. It's quite similar to the `fontscollectionpath` change from #59.\r\n\r\nInstead of, or in addition to, supporting custom paths using environment variables, may be `mapnik-config` should be used to retrieve the paths and fallback to the environment variables and hardcoded paths when unavailable.\r\n\r\n`build.py` uses the `MAPNIK_LIB_DIR` environment variable to set the path for `mapniklibpath` in `paths.py`, that's also an option instead of specifying only part of the path with `LIB_DIR_NAME`."},"comment":{"url":"https://api.github.com/repos/mapnik/python-mapnik/issues/comments/160121239","html_url":"https://github.com/mapnik/python-mapnik/pull/64#issuecomment-160121239","issue_url":"https://api.github.com/repos/mapnik/python-mapnik/issues/64","id":160121239,"user":{"login":"sebastic","id":4605306,"avatar_url":"https://avatars.githubusercontent.com/u/4605306?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastic","html_url":"https://github.com/sebastic","followers_url":"https://api.github.com/users/sebastic/followers","following_url":"https://api.github.com/users/sebastic/following{/other_user}","gists_url":"https://api.github.com/users/sebastic/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastic/subscriptions","organizations_url":"https://api.github.com/users/sebastic/orgs","repos_url":"https://api.github.com/users/sebastic/repos","events_url":"https://api.github.com/users/sebastic/events{/privacy}","received_events_url":"https://api.github.com/users/sebastic/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T11:40:43Z","updated_at":"2015-11-27T11:40:43Z","body":"Thanks for the merge!"}}