{"action":"created","issue":{"url":"https://api.github.com/repos/pantsbuild/pex/issues/106","repository_url":"https://api.github.com/repos/pantsbuild/pex","labels_url":"https://api.github.com/repos/pantsbuild/pex/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pex/issues/106/comments","events_url":"https://api.github.com/repos/pantsbuild/pex/issues/106/events","html_url":"https://github.com/pantsbuild/pex/pull/106","id":72527819,"number":106,"title":"Fix --inherit-path","user":{"login":"mbachry","id":217954,"avatar_url":"https://avatars.githubusercontent.com/u/217954?v=3","gravatar_id":"","url":"https://api.github.com/users/mbachry","html_url":"https://github.com/mbachry","followers_url":"https://api.github.com/users/mbachry/followers","following_url":"https://api.github.com/users/mbachry/following{/other_user}","gists_url":"https://api.github.com/users/mbachry/gists{/gist_id}","starred_url":"https://api.github.com/users/mbachry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbachry/subscriptions","organizations_url":"https://api.github.com/users/mbachry/orgs","repos_url":"https://api.github.com/users/mbachry/repos","events_url":"https://api.github.com/users/mbachry/events{/privacy}","received_events_url":"https://api.github.com/users/mbachry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-05-01T21:29:30Z","updated_at":"2016-07-13T07:15:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pantsbuild/pex/pulls/106","html_url":"https://github.com/pantsbuild/pex/pull/106","diff_url":"https://github.com/pantsbuild/pex/pull/106.diff","patch_url":"https://github.com/pantsbuild/pex/pull/106.patch"},"body":"`--inherit-path` doesn't work with current master. Normally pex bootstrapper strips down `sys.path` to bare minimum, but I believe it should leave `sys.path` alone if `--inherit-path` was passed. I'm not sure about other stuff patched in `patch_sys` function (like `sys.modules`), but I think it's safer not to touch these either in this case.\r\n\r\nI bumped on this bug trying to use `lxc` module. It's provided by `python-lxc` package on Ubuntu, but unfortunately it's not uploaded to pypi."},"comment":{"url":"https://api.github.com/repos/pantsbuild/pex/issues/comments/232275220","html_url":"https://github.com/pantsbuild/pex/pull/106#issuecomment-232275220","issue_url":"https://api.github.com/repos/pantsbuild/pex/issues/106","id":232275220,"user":{"login":"brbsix","id":6672131,"avatar_url":"https://avatars.githubusercontent.com/u/6672131?v=3","gravatar_id":"","url":"https://api.github.com/users/brbsix","html_url":"https://github.com/brbsix","followers_url":"https://api.github.com/users/brbsix/followers","following_url":"https://api.github.com/users/brbsix/following{/other_user}","gists_url":"https://api.github.com/users/brbsix/gists{/gist_id}","starred_url":"https://api.github.com/users/brbsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brbsix/subscriptions","organizations_url":"https://api.github.com/users/brbsix/orgs","repos_url":"https://api.github.com/users/brbsix/repos","events_url":"https://api.github.com/users/brbsix/events{/privacy}","received_events_url":"https://api.github.com/users/brbsix/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T07:15:07Z","updated_at":"2016-07-13T07:15:07Z","body":"I was trying to fix this earlier today. I was packaging up a pip helper utility, so access to user site distributions was essential. You can see what I did at https://github.com/brbsix/pip-utils/commit/b27f9ddb784eb49bbb7a8894d0f13067fb42b4e4. It's a really dirty `sed` one-liner, this gist of which is:\r\n\r\n    git clone --depth=1 https://github.com/pantsbuild/pex\r\n    sed -i 's/^\\(\\s*scrub_paths\\) = user_site_distributions$$/\\1 = OrderedSet()/' pex/pex/pex.py\r\n\r\nThis obviously doesn't fix log messages or anything like that, but it gets the job done. It would be nice to see this properly addressed so that `.pex` can be more akin to ZIP applications if need be (but with decent tooling and dependency support)."}}
{"actor":{"display_login":"brbsix"}}