{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/pipenv/issues/540","repository_url":"https://api.github.com/repos/kennethreitz/pipenv","labels_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/540/comments","events_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/540/events","html_url":"https://github.com/kennethreitz/pipenv/issues/540","id":257555976,"number":540,"title":"issues with relative packages","user":{"login":"AlJohri","id":2790092,"avatar_url":"https://avatars0.githubusercontent.com/u/2790092?v=4","gravatar_id":"","url":"https://api.github.com/users/AlJohri","html_url":"https://github.com/AlJohri","followers_url":"https://api.github.com/users/AlJohri/followers","following_url":"https://api.github.com/users/AlJohri/following{/other_user}","gists_url":"https://api.github.com/users/AlJohri/gists{/gist_id}","starred_url":"https://api.github.com/users/AlJohri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlJohri/subscriptions","organizations_url":"https://api.github.com/users/AlJohri/orgs","repos_url":"https://api.github.com/users/AlJohri/repos","events_url":"https://api.github.com/users/AlJohri/events{/privacy}","received_events_url":"https://api.github.com/users/AlJohri/received_events","type":"User","site_admin":false},"labels":[{"id":526101048,"url":"https://api.github.com/repos/kennethreitz/pipenv/labels/reported%20bug","name":"reported bug","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":36,"created_at":"2017-09-14T00:01:03Z","updated_at":"2017-09-21T17:23:21Z","closed_at":"2017-09-21T02:52:15Z","author_association":"CONTRIBUTOR","body":"@kennethreitz I'm having trouble installing local packages in relative directories via `-e`.\r\n\r\n<img width=\"769\" alt=\"screen shot 2017-09-13 at 7 54 55 pm\" src=\"https://user-images.githubusercontent.com/2790092/30406072-7008675e-98bd-11e7-8a60-bfb9f57cfe10.png\">\r\n\r\nThis is the initial requirements.txt file:\r\n\r\n```\r\n-e ../../lib/python\r\narrow==0.10.0\r\nblessings==1.6\r\nboto3==1.4.7\r\n```\r\n\r\nThis is what the converted Pipfile looks like:\r\n```\r\n[[source]]\r\nurl = \"https://pypi.python.org/simple\"\r\nverify_ssl = true\r\n\r\n[packages]\r\n\"-e file:///users/johria/development/heliograf/lib/python\" = \"*\"\r\narrow = \"==0.10.0\"\r\nblessings = \"==1.6\"\r\n```\r\n\r\n`heliograf` in this case is the name in setup.py of the relative package.\r\n\r\nI believe the issue may be that the Pipfile.lock doesn't have the directory?\r\n\r\n```\r\n        \"heliograf\": {\r\n            \"hashes\": [],\r\n            \"version\": \"==0.1.0\"\r\n        },\r\n```\r\n\r\n--------------------\r\n\r\nWhile the above is starting from the requirements.txt, this _kind of_ works: `pipenv install -e ../../lib/python`\r\n\r\nIt adds another entry into the Pipefile like this:\r\n\r\n```\r\n\"-e ../../lib/python\" = \"*\"\r\n```\r\n\r\nI can see that the package is installed properly by running `pipenv run python` and importing the package. In addition, doing a `pipenv shell` followed by a `pip freeze` shows:\r\n\r\n```\r\n-e git+git@github.com:WPMedia/heliograf.git@4dbd528e2f2daeb4b4462b29d2dc8c54341428b5#egg=heliograf&subdirectory=lib/python\r\n```\r\n\r\npotentially related issues:\r\n- https://github.com/kennethreitz/pipenv/issues/66\r\n- https://github.com/kennethreitz/pipenv/issues/67\r\n\r\nversions:\r\n- python version: 3.6.2\r\n- pipenv version: 7.0.1\r\n- python installed via: pyenv"},"comment":{"url":"https://api.github.com/repos/kennethreitz/pipenv/issues/comments/331224743","html_url":"https://github.com/kennethreitz/pipenv/issues/540#issuecomment-331224743","issue_url":"https://api.github.com/repos/kennethreitz/pipenv/issues/540","id":331224743,"user":{"login":"kennethreitz","id":119893,"avatar_url":"https://avatars2.githubusercontent.com/u/119893?v=4","gravatar_id":"","url":"https://api.github.com/users/kennethreitz","html_url":"https://github.com/kennethreitz","followers_url":"https://api.github.com/users/kennethreitz/followers","following_url":"https://api.github.com/users/kennethreitz/following{/other_user}","gists_url":"https://api.github.com/users/kennethreitz/gists{/gist_id}","starred_url":"https://api.github.com/users/kennethreitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kennethreitz/subscriptions","organizations_url":"https://api.github.com/users/kennethreitz/orgs","repos_url":"https://api.github.com/users/kennethreitz/repos","events_url":"https://api.github.com/users/kennethreitz/events{/privacy}","received_events_url":"https://api.github.com/users/kennethreitz/received_events","type":"User","site_admin":false},"created_at":"2017-09-21T17:23:21Z","updated_at":"2017-09-21T17:23:21Z","author_association":"OWNER","body":"need to make sure if works with paths too"}}
{"actor":{"display_login":"kennethreitz"}}