{"action":"created","issue":{"url":"https://api.github.com/repos/yyuu/pyenv/issues/333","labels_url":"https://api.github.com/repos/yyuu/pyenv/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/yyuu/pyenv/issues/333/comments","events_url":"https://api.github.com/repos/yyuu/pyenv/issues/333/events","html_url":"https://github.com/yyuu/pyenv/issues/333","id":62254281,"number":333,"title":"Link to a specific version of sqlite3 when building Python 3 versions","user":{"login":"cilia","id":1176473,"avatar_url":"https://avatars.githubusercontent.com/u/1176473?v=3","gravatar_id":"","url":"https://api.github.com/users/cilia","html_url":"https://github.com/cilia","followers_url":"https://api.github.com/users/cilia/followers","following_url":"https://api.github.com/users/cilia/following{/other_user}","gists_url":"https://api.github.com/users/cilia/gists{/gist_id}","starred_url":"https://api.github.com/users/cilia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cilia/subscriptions","organizations_url":"https://api.github.com/users/cilia/orgs","repos_url":"https://api.github.com/users/cilia/repos","events_url":"https://api.github.com/users/cilia/events{/privacy}","received_events_url":"https://api.github.com/users/cilia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-03-17T01:48:43Z","updated_at":"2015-03-20T05:05:38Z","closed_at":null,"body":"Hello,\r\n\r\nI used homebrew to install/upgrade `sqlite3` (the database, not the python library), and I want to build a Python 3 using the newer `sqlite3` by homebrew instead of the system wide version by OS X.\r\n\r\nI have tried the following:\r\n\r\n    env LD_RUN_PATH=\"/usr/local/opt\" LDFLAGS=\"-L/usr/local/opt\" CPPFLAGS=\"-I/usr/local/include\" pyenv install 3.4.3\r\n\r\nwhere `/usr/local/opt` and `/usr/local/include` are the directories where homebrew symlinks the libraries, headers and so on. But it didn't work. The linked `sqlite3` linked by Python 3.4.3 is still the older version that comes with OS X.\r\n\r\nMy attempt above stems from this: http://stackoverflow.com/questions/26261080/compile-python-3-4-with-sqlite3, and my adaptation to `pyenv` may be wrong.\r\n\r\nAny suggestion?\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9641806-link-to-a-specific-version-of-sqlite3-when-building-python-3-versions?utm_campaign=plugin&utm_content=tracker%2F282009&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282009&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/yyuu/pyenv/issues/comments/83904674","html_url":"https://github.com/yyuu/pyenv/issues/333#issuecomment-83904674","issue_url":"https://api.github.com/repos/yyuu/pyenv/issues/333","id":83904674,"user":{"login":"cilia","id":1176473,"avatar_url":"https://avatars.githubusercontent.com/u/1176473?v=3","gravatar_id":"","url":"https://api.github.com/users/cilia","html_url":"https://github.com/cilia","followers_url":"https://api.github.com/users/cilia/followers","following_url":"https://api.github.com/users/cilia/following{/other_user}","gists_url":"https://api.github.com/users/cilia/gists{/gist_id}","starred_url":"https://api.github.com/users/cilia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cilia/subscriptions","organizations_url":"https://api.github.com/users/cilia/orgs","repos_url":"https://api.github.com/users/cilia/repos","events_url":"https://api.github.com/users/cilia/events{/privacy}","received_events_url":"https://api.github.com/users/cilia/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T05:05:38Z","updated_at":"2015-03-20T05:05:38Z","body":"@yyuu thanks.\r\n\r\nSeeing the line of code you referenced, I wonder if there is a way to pass in `PACKAGE_PREFIX_PATH`  or `PREFIX_PATH` variables to `./configure` and `make` during the build?\r\n\r\nBased on this: http://stackoverflow.com/questions/8656158/building-python-2-5-with-full-sqlite3-as-a-user-on-linux, those might be what we need here."}}