{"action":"created","issue":{"url":"https://api.github.com/repos/yyuu/pyenv/issues/406","labels_url":"https://api.github.com/repos/yyuu/pyenv/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/yyuu/pyenv/issues/406/comments","events_url":"https://api.github.com/repos/yyuu/pyenv/issues/406/events","html_url":"https://github.com/yyuu/pyenv/issues/406","id":94108697,"number":406,"title":"pyenv's pip placing src/ in wrong directory","user":{"login":"mcandre","id":5316,"avatar_url":"https://avatars.githubusercontent.com/u/5316?v=3","gravatar_id":"","url":"https://api.github.com/users/mcandre","html_url":"https://github.com/mcandre","followers_url":"https://api.github.com/users/mcandre/followers","following_url":"https://api.github.com/users/mcandre/following{/other_user}","gists_url":"https://api.github.com/users/mcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/mcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcandre/subscriptions","organizations_url":"https://api.github.com/users/mcandre/orgs","repos_url":"https://api.github.com/users/mcandre/repos","events_url":"https://api.github.com/users/mcandre/events{/privacy}","received_events_url":"https://api.github.com/users/mcandre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-09T17:33:23Z","updated_at":"2015-07-12T13:44:16Z","closed_at":"2015-07-12T13:44:16Z","body":"When I use pyenv's pip to install some dependencies from source, pip creates a `./src/` directory clashing with my current working project/directory, rather than a better location such as `~/.pyenv/src/`. Am I doing something wrong?\r\n\r\nTrace:\r\n\r\n```\r\nmyproject$ ls src\r\nls: cannot access src: No such file or directory\r\nmyproject$ pip install -r requirements.txt\r\n...\r\nmyproject$ ls src\r\n...\r\n```\r\n\r\nOrdinarily, I would gitignore this directory, but `src/` is so commonly used to hold first party code in version controlled project structures, that it's bad form to do this.\r\n\r\nConfiguration:\r\n\r\nhttps://github.com/mcandre/dotfiles/blob/master/.bashrc.d/pyenv.sh\r\n\r\nhttps://github.com/mcandre/dotfiles/blob/master/.python-version\r\n\r\nSystem:\r\n\r\n```\r\npyenv --version\r\npyenv 20150601\r\n```\r\n\r\nMac OS X 10.10.4\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24023371-pyenv-s-pip-placing-src-in-wrong-directory?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/120721539","html_url":"https://github.com/yyuu/pyenv/issues/406#issuecomment-120721539","issue_url":"https://api.github.com/repos/yyuu/pyenv/issues/406","id":120721539,"user":{"login":"yyuu","id":63651,"avatar_url":"https://avatars.githubusercontent.com/u/63651?v=3","gravatar_id":"","url":"https://api.github.com/users/yyuu","html_url":"https://github.com/yyuu","followers_url":"https://api.github.com/users/yyuu/followers","following_url":"https://api.github.com/users/yyuu/following{/other_user}","gists_url":"https://api.github.com/users/yyuu/gists{/gist_id}","starred_url":"https://api.github.com/users/yyuu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyuu/subscriptions","organizations_url":"https://api.github.com/users/yyuu/orgs","repos_url":"https://api.github.com/users/yyuu/repos","events_url":"https://api.github.com/users/yyuu/events{/privacy}","received_events_url":"https://api.github.com/users/yyuu/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T13:44:16Z","updated_at":"2015-07-12T13:44:16Z","body":"It is because pip handles only virtualenvs differently. I don't think this is an issue of pyenv, would be an issue of pip`.\r\n\r\nhttps://github.com/pypa/pip/blob/685c8b5ace6aaac7bf8c2c0269a9adb95e17a6ad/pip/cmdoptions.py#L373-L382\r\nhttps://github.com/pypa/pip/blob/685c8b5ace6aaac7bf8c2c0269a9adb95e17a6ad/pip/locations.py#L105-L115\r\n\r\nBasically I think the user of `pip` should specify `--src` explicitly if s?he wants to install the library to custom destination. I don't want to have something like `~/.pyenv/src` since everything in pyenv is basically editable."}}