{"action":"created","comment":{"url":"https://api.github.com/repos/python/cpython/pulls/comments/194230605","pull_request_review_id":127369911,"id":194230605,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDIzMDYwNQ==","diff_hunk":"@@ -585,6 +590,16 @@ conflict.\n    specifying the :option:`-B` option.\n \n \n+.. envvar:: PYTHONBYTECODEPATH\n+\n+   If this is set, Python will write ``.pyc`` files in a mirror directory tree\n+   at this path, instead of in ``__pycache__`` directories within the source\n+   tree. This is equivalent to specifying the :option:`-X`\n+   ``bytecode_path=PATH`` option.\n+","path":"Doc/using/cmdline.rst","position":30,"original_position":29,"commit_id":"7bbbde75126e4e1fa31a44ca530a1f52712a1f03","original_commit_id":"0d59ebd8535f142885e65cdf37055d2c9ec5f0d0","user":{"login":"carljm","id":61586,"node_id":"MDQ6VXNlcjYxNTg2","avatar_url":"https://avatars0.githubusercontent.com/u/61586?v=4","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"body":"I don't think this is quite true; a relative given prefix is left relative, and ends up being treated as CWD-relative; this behavior pre-exists my PR. I did add mention of it in the `sys` docs, though.","created_at":"2018-06-09T15:10:27Z","updated_at":"2018-06-09T15:10:27Z","html_url":"https://github.com/python/cpython/pull/6834#discussion_r194230605","pull_request_url":"https://api.github.com/repos/python/cpython/pulls/6834","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/python/cpython/pulls/comments/194230605"},"html":{"href":"https://github.com/python/cpython/pull/6834#discussion_r194230605"},"pull_request":{"href":"https://api.github.com/repos/python/cpython/pulls/6834"}},"in_reply_to_id":194191934},"pull_request":{"url":"https://api.github.com/repos/python/cpython/pulls/6834","id":187961333,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg3OTYxMzMz","html_url":"https://github.com/python/cpython/pull/6834","diff_url":"https://github.com/python/cpython/pull/6834.diff","patch_url":"https://github.com/python/cpython/pull/6834.patch","issue_url":"https://api.github.com/repos/python/cpython/issues/6834","number":6834,"state":"open","locked":false,"title":"bpo-33499: Add PYTHONBYTECODEPATH env var for alt bytecode location.","user":{"login":"carljm","id":61586,"node_id":"MDQ6VXNlcjYxNTg2","avatar_url":"https://avatars0.githubusercontent.com/u/61586?v=4","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"body":"In some development setups it is inconvenient or impossible to write bytecode\r\ncaches to the code tree, but the bytecode caches are still useful. The\r\nPYTHONBYTECODEPATH environment variable allows specifying an alternate\r\nlocation for bytecode files, within which a directory tree mirroring the code\r\ntree will be created.\n\n<!-- issue-number: bpo-33499 -->\nhttps://bugs.python.org/issue33499\n<!-- /issue-number -->\n","created_at":"2018-05-14T21:52:22Z","updated_at":"2018-06-09T15:10:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84b0219469038d73bbe3038a73182a0c4f46e331","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tiran","id":444071,"node_id":"MDQ6VXNlcjQ0NDA3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/444071?v=4","gravatar_id":"","url":"https://api.github.com/users/tiran","html_url":"https://github.com/tiran","followers_url":"https://api.github.com/users/tiran/followers","following_url":"https://api.github.com/users/tiran/following{/other_user}","gists_url":"https://api.github.com/users/tiran/gists{/gist_id}","starred_url":"https://api.github.com/users/tiran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiran/subscriptions","organizations_url":"https://api.github.com/users/tiran/orgs","repos_url":"https://api.github.com/users/tiran/repos","events_url":"https://api.github.com/users/tiran/events{/privacy}","received_events_url":"https://api.github.com/users/tiran/received_events","type":"User","site_admin":false}],"requested_teams":[{"name":"windows-team","id":2445193,"node_id":"MDQ6VGVhbTI0NDUxOTM=","slug":"windows-team","description":"Windows support for Python","privacy":"closed","url":"https://api.github.com/teams/2445193","members_url":"https://api.github.com/teams/2445193/members{/member}","repositories_url":"https://api.github.com/teams/2445193/repos","permission":"pull"}],"labels":[{"id":536945472,"node_id":"MDU6TGFiZWw1MzY5NDU0NzI=","url":"https://api.github.com/repos/python/cpython/labels/CLA%20signed","name":"CLA signed","color":"0e8a16","default":false},{"id":666979922,"node_id":"MDU6TGFiZWw2NjY5Nzk5MjI=","url":"https://api.github.com/repos/python/cpython/labels/awaiting%20changes","name":"awaiting changes","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/python/cpython/pulls/6834/commits","review_comments_url":"https://api.github.com/repos/python/cpython/pulls/6834/comments","review_comment_url":"https://api.github.com/repos/python/cpython/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python/cpython/issues/6834/comments","statuses_url":"https://api.github.com/repos/python/cpython/statuses/7bbbde75126e4e1fa31a44ca530a1f52712a1f03","head":{"label":"carljm:python-bytecode-path","ref":"python-bytecode-path","sha":"7bbbde75126e4e1fa31a44ca530a1f52712a1f03","user":{"login":"carljm","id":61586,"node_id":"MDQ6VXNlcjYxNTg2","avatar_url":"https://avatars0.githubusercontent.com/u/61586?v=4","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"repo":{"id":99052778,"node_id":"MDEwOlJlcG9zaXRvcnk5OTA1Mjc3OA==","name":"cpython","full_name":"carljm/cpython","owner":{"login":"carljm","id":61586,"node_id":"MDQ6VXNlcjYxNTg2","avatar_url":"https://avatars0.githubusercontent.com/u/61586?v=4","gravatar_id":"","url":"https://api.github.com/users/carljm","html_url":"https://github.com/carljm","followers_url":"https://api.github.com/users/carljm/followers","following_url":"https://api.github.com/users/carljm/following{/other_user}","gists_url":"https://api.github.com/users/carljm/gists{/gist_id}","starred_url":"https://api.github.com/users/carljm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carljm/subscriptions","organizations_url":"https://api.github.com/users/carljm/orgs","repos_url":"https://api.github.com/users/carljm/repos","events_url":"https://api.github.com/users/carljm/events{/privacy}","received_events_url":"https://api.github.com/users/carljm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carljm/cpython","description":"The Python programming language","fork":true,"url":"https://api.github.com/repos/carljm/cpython","forks_url":"https://api.github.com/repos/carljm/cpython/forks","keys_url":"https://api.github.com/repos/carljm/cpython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carljm/cpython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carljm/cpython/teams","hooks_url":"https://api.github.com/repos/carljm/cpython/hooks","issue_events_url":"https://api.github.com/repos/carljm/cpython/issues/events{/number}","events_url":"https://api.github.com/repos/carljm/cpython/events","assignees_url":"https://api.github.com/repos/carljm/cpython/assignees{/user}","branches_url":"https://api.github.com/repos/carljm/cpython/branches{/branch}","tags_url":"https://api.github.com/repos/carljm/cpython/tags","blobs_url":"https://api.github.com/repos/carljm/cpython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carljm/cpython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carljm/cpython/git/refs{/sha}","trees_url":"https://api.github.com/repos/carljm/cpython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carljm/cpython/statuses/{sha}","languages_url":"https://api.github.com/repos/carljm/cpython/languages","stargazers_url":"https://api.github.com/repos/carljm/cpython/stargazers","contributors_url":"https://api.github.com/repos/carljm/cpython/contributors","subscribers_url":"https://api.github.com/repos/carljm/cpython/subscribers","subscription_url":"https://api.github.com/repos/carljm/cpython/subscription","commits_url":"https://api.github.com/repos/carljm/cpython/commits{/sha}","git_commits_url":"https://api.github.com/repos/carljm/cpython/git/commits{/sha}","comments_url":"https://api.github.com/repos/carljm/cpython/comments{/number}","issue_comment_url":"https://api.github.com/repos/carljm/cpython/issues/comments{/number}","contents_url":"https://api.github.com/repos/carljm/cpython/contents/{+path}","compare_url":"https://api.github.com/repos/carljm/cpython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carljm/cpython/merges","archive_url":"https://api.github.com/repos/carljm/cpython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carljm/cpython/downloads","issues_url":"https://api.github.com/repos/carljm/cpython/issues{/number}","pulls_url":"https://api.github.com/repos/carljm/cpython/pulls{/number}","milestones_url":"https://api.github.com/repos/carljm/cpython/milestones{/number}","notifications_url":"https://api.github.com/repos/carljm/cpython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carljm/cpython/labels{/name}","releases_url":"https://api.github.com/repos/carljm/cpython/releases{/id}","deployments_url":"https://api.github.com/repos/carljm/cpython/deployments","created_at":"2017-08-01T23:52:00Z","updated_at":"2018-05-14T21:14:10Z","pushed_at":"2018-06-09T06:44:49Z","git_url":"git://github.com/carljm/cpython.git","ssh_url":"git@github.com:carljm/cpython.git","clone_url":"https://github.com/carljm/cpython.git","svn_url":"https://github.com/carljm/cpython","homepage":"https://www.python.org/","size":231681,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python:master","ref":"master","sha":"fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14","user":{"login":"python","id":1525981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjU5ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/1525981?v=4","gravatar_id":"","url":"https://api.github.com/users/python","html_url":"https://github.com/python","followers_url":"https://api.github.com/users/python/followers","following_url":"https://api.github.com/users/python/following{/other_user}","gists_url":"https://api.github.com/users/python/gists{/gist_id}","starred_url":"https://api.github.com/users/python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python/subscriptions","organizations_url":"https://api.github.com/users/python/orgs","repos_url":"https://api.github.com/users/python/repos","events_url":"https://api.github.com/users/python/events{/privacy}","received_events_url":"https://api.github.com/users/python/received_events","type":"Organization","site_admin":false},"repo":{"id":81598961,"node_id":"MDEwOlJlcG9zaXRvcnk4MTU5ODk2MQ==","name":"cpython","full_name":"python/cpython","owner":{"login":"python","id":1525981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjU5ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/1525981?v=4","gravatar_id":"","url":"https://api.github.com/users/python","html_url":"https://github.com/python","followers_url":"https://api.github.com/users/python/followers","following_url":"https://api.github.com/users/python/following{/other_user}","gists_url":"https://api.github.com/users/python/gists{/gist_id}","starred_url":"https://api.github.com/users/python/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python/subscriptions","organizations_url":"https://api.github.com/users/python/orgs","repos_url":"https://api.github.com/users/python/repos","events_url":"https://api.github.com/users/python/events{/privacy}","received_events_url":"https://api.github.com/users/python/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python/cpython","description":"The Python programming language","fork":false,"url":"https://api.github.com/repos/python/cpython","forks_url":"https://api.github.com/repos/python/cpython/forks","keys_url":"https://api.github.com/repos/python/cpython/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python/cpython/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python/cpython/teams","hooks_url":"https://api.github.com/repos/python/cpython/hooks","issue_events_url":"https://api.github.com/repos/python/cpython/issues/events{/number}","events_url":"https://api.github.com/repos/python/cpython/events","assignees_url":"https://api.github.com/repos/python/cpython/assignees{/user}","branches_url":"https://api.github.com/repos/python/cpython/branches{/branch}","tags_url":"https://api.github.com/repos/python/cpython/tags","blobs_url":"https://api.github.com/repos/python/cpython/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python/cpython/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python/cpython/git/refs{/sha}","trees_url":"https://api.github.com/repos/python/cpython/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python/cpython/statuses/{sha}","languages_url":"https://api.github.com/repos/python/cpython/languages","stargazers_url":"https://api.github.com/repos/python/cpython/stargazers","contributors_url":"https://api.github.com/repos/python/cpython/contributors","subscribers_url":"https://api.github.com/repos/python/cpython/subscribers","subscription_url":"https://api.github.com/repos/python/cpython/subscription","commits_url":"https://api.github.com/repos/python/cpython/commits{/sha}","git_commits_url":"https://api.github.com/repos/python/cpython/git/commits{/sha}","comments_url":"https://api.github.com/repos/python/cpython/comments{/number}","issue_comment_url":"https://api.github.com/repos/python/cpython/issues/comments{/number}","contents_url":"https://api.github.com/repos/python/cpython/contents/{+path}","compare_url":"https://api.github.com/repos/python/cpython/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python/cpython/merges","archive_url":"https://api.github.com/repos/python/cpython/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python/cpython/downloads","issues_url":"https://api.github.com/repos/python/cpython/issues{/number}","pulls_url":"https://api.github.com/repos/python/cpython/pulls{/number}","milestones_url":"https://api.github.com/repos/python/cpython/milestones{/number}","notifications_url":"https://api.github.com/repos/python/cpython/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python/cpython/labels{/name}","releases_url":"https://api.github.com/repos/python/cpython/releases{/id}","deployments_url":"https://api.github.com/repos/python/cpython/deployments","created_at":"2017-02-10T19:23:51Z","updated_at":"2018-06-09T14:00:59Z","pushed_at":"2018-06-09T14:16:50Z","git_url":"git://github.com/python/cpython.git","ssh_url":"git@github.com:python/cpython.git","clone_url":"https://github.com/python/cpython.git","svn_url":"https://github.com/python/cpython","homepage":"https://www.python.org/","size":239802,"stargazers_count":18060,"watchers_count":18060,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5622,"mirror_url":null,"archived":false,"open_issues_count":718,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":5622,"open_issues":718,"watchers":18060,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python/cpython/pulls/6834"},"html":{"href":"https://github.com/python/cpython/pull/6834"},"issue":{"href":"https://api.github.com/repos/python/cpython/issues/6834"},"comments":{"href":"https://api.github.com/repos/python/cpython/issues/6834/comments"},"review_comments":{"href":"https://api.github.com/repos/python/cpython/pulls/6834/comments"},"review_comment":{"href":"https://api.github.com/repos/python/cpython/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python/cpython/pulls/6834/commits"},"statuses":{"href":"https://api.github.com/repos/python/cpython/statuses/7bbbde75126e4e1fa31a44ca530a1f52712a1f03"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"carljm"}}