{"url":"https://api.github.com/repos/python/cpython/pulls/1522","id":119683604,"node_id":"MDExOlB1bGxSZXF1ZXN0MTE5NjgzNjA0","html_url":"https://github.com/python/cpython/pull/1522","diff_url":"https://github.com/python/cpython/pull/1522.diff","patch_url":"https://github.com/python/cpython/pull/1522.patch","issue_url":"https://api.github.com/repos/python/cpython/issues/1522","commits_url":"https://api.github.com/repos/python/cpython/pulls/1522/commits","review_comments_url":"https://api.github.com/repos/python/cpython/pulls/1522/comments","review_comment_url":"https://api.github.com/repos/python/cpython/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python/cpython/issues/1522/comments","statuses_url":"https://api.github.com/repos/python/cpython/statuses/6776eff0c1a61576fdc321c4a85e998a469bd377","number":1522,"state":"closed","locked":false,"title":"[2.7] bpo-29243: Fix Makefile with respect to --enable-optimizations …","user":{"login":"torsava","id":17247852,"node_id":"MDQ6VXNlcjE3MjQ3ODUy","avatar_url":"https://avatars.githubusercontent.com/u/17247852?v=4","gravatar_id":"","url":"https://api.github.com/users/torsava","html_url":"https://github.com/torsava","followers_url":"https://api.github.com/users/torsava/followers","following_url":"https://api.github.com/users/torsava/following{/other_user}","gists_url":"https://api.github.com/users/torsava/gists{/gist_id}","starred_url":"https://api.github.com/users/torsava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsava/subscriptions","organizations_url":"https://api.github.com/users/torsava/orgs","repos_url":"https://api.github.com/users/torsava/repos","events_url":"https://api.github.com/users/torsava/events{/privacy}","received_events_url":"https://api.github.com/users/torsava/received_events","type":"User","user_view_type":"public","site_admin":false},"body":"…(GH-1478)\r\n\r\n* bpo-29243: Fix Makefile with respect to --enable-optimizations\r\n\r\nWhen using the Profile Guided Optimization (./configure --enable-optimizations)\r\nPython is built not only during `make` but rebuilt again during `make test`,\r\n`make install` and others. This patch fixes the issue.\r\n\r\nNote that this fix produces no change at all in the Makefile if configure is\r\nrun witout --enable-optimizations.\r\n\r\n* !squash.\r\n(cherry picked from commit a1054c3b0037d4c2a5492e79fc193f36245366c7)","labels":[],"milestone":null,"active_lock_reason":null,"created_at":"2017-05-09T15:14:07Z","updated_at":"2017-05-09T16:15:20Z","closed_at":"2017-05-09T16:04:30Z","merged_at":"2017-05-09T16:04:30Z","merge_commit_sha":"a473a73d0cb42c534a3047bbf781b3c592fc33ca","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"head":{"label":"torsava:backport-a1054c3-2.7","ref":"backport-a1054c3-2.7","repo":{"id":83667522,"node_id":"MDEwOlJlcG9zaXRvcnk4MzY2NzUyMg==","name":"cpython","full_name":"torsava/cpython","owner":{"login":"torsava","id":17247852,"node_id":"MDQ6VXNlcjE3MjQ3ODUy","avatar_url":"https://avatars.githubusercontent.com/u/17247852?v=4","gravatar_id":"","url":"https://api.github.com/users/torsava","html_url":"https://github.com/torsava","followers_url":"https://api.github.com/users/torsava/followers","following_url":"https://api.github.com/users/torsava/following{/other_user}","gists_url":"https://api.github.com/users/torsava/gists{/gist_id}","starred_url":"https://api.github.com/users/torsava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsava/subscriptions","organizations_url":"https://api.github.com/users/torsava/orgs","repos_url":"https://api.github.com/users/torsava/repos","events_url":"https://api.github.com/users/torsava/events{/privacy}","received_events_url":"https://api.github.com/users/torsava/received_events","type":"User","user_view_type":"public","site_admin":false},"private":false,"fork":true,"archived":false,"disabled":false,"description":"The Python programming language","homepage":"https://www.python.org/","language":"Python","visibility":"public","is_template":false,"topics":[],"forks_count":0,"forks":0,"stargazers_count":0,"watchers_count":0,"watchers":0,"open_issues_count":0,"open_issues":0,"size":299721,"default_branch":"master","has_issues":false,"has_projects":true,"has_wiki":false,"has_pages":false,"has_downloads":false,"has_discussions":false,"has_pull_requests":true,"pushed_at":"2019-12-02T15:32:13Z","created_at":"2017-03-02T10:53:06Z","updated_at":"2019-12-02T15:32:19Z","allow_forking":true,"web_commit_signoff_required":false,"pull_request_creation_policy":"all","license":{"key":"other","name":"Other","url":null,"spdx_id":"NOASSERTION","node_id":"MDc6TGljZW5zZTA="},"url":"https://api.github.com/repos/torsava/cpython","html_url":"https://github.com/torsava/cpython","archive_url":"https://api.github.com/repos/torsava/cpython/{archive_format}{/ref}","assignees_url":"https://api.github.com/repos/torsava/cpython/assignees{/user}","blobs_url":"https://api.github.com/repos/torsava/cpython/git/blobs{/sha}","branches_url":"https://api.github.com/repos/torsava/cpython/branches{/branch}","collaborators_url":"https://api.github.com/repos/torsava/cpython/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/torsava/cpython/comments{/number}","commits_url":"https://api.github.com/repos/torsava/cpython/commits{/sha}","compare_url":"https://api.github.com/repos/torsava/cpython/compare/{base}...{head}","contents_url":"https://api.github.com/repos/torsava/cpython/contents/{+path}","contributors_url":"https://api.github.com/repos/torsava/cpython/contributors","deployments_url":"https://api.github.com/repos/torsava/cpython/deployments","downloads_url":"https://api.github.com/repos/torsava/cpython/downloads","events_url":"https://api.github.com/repos/torsava/cpython/events","forks_url":"https://api.github.com/repos/torsava/cpython/forks","git_commits_url":"https://api.github.com/repos/torsava/cpython/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/torsava/cpython/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/torsava/cpython/git/tags{/sha}","git_url":"git://github.com/torsava/cpython.git","issue_comment_url":"https://api.github.com/repos/torsava/cpython/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/torsava/cpython/issues/events{/number}","issues_url":"https://api.github.com/repos/torsava/cpython/issues{/number}","keys_url":"https://api.github.com/repos/torsava/cpython/keys{/key_id}","labels_url":"https://api.github.com/repos/torsava/cpython/labels{/name}","languages_url":"https://api.github.com/repos/torsava/cpython/languages","merges_url":"https://api.github.com/repos/torsava/cpython/merges","milestones_url":"https://api.github.com/repos/torsava/cpython/milestones{/number}","notifications_url":"https://api.github.com/repos/torsava/cpython/notifications{?since,all,participating}","pulls_url":"https://api.github.com/repos/torsava/cpython/pulls{/number}","releases_url":"https://api.github.com/repos/torsava/cpython/releases{/id}","ssh_url":"git@github.com:torsava/cpython.git","stargazers_url":"https://api.github.com/repos/torsava/cpython/stargazers","statuses_url":"https://api.github.com/repos/torsava/cpython/statuses/{sha}","subscribers_url":"https://api.github.com/repos/torsava/cpython/subscribers","subscription_url":"https://api.github.com/repos/torsava/cpython/subscription","tags_url":"https://api.github.com/repos/torsava/cpython/tags","teams_url":"https://api.github.com/repos/torsava/cpython/teams","trees_url":"https://api.github.com/repos/torsava/cpython/git/trees{/sha}","clone_url":"https://github.com/torsava/cpython.git","mirror_url":null,"hooks_url":"https://api.github.com/repos/torsava/cpython/hooks","svn_url":"https://github.com/torsava/cpython"},"sha":"6776eff0c1a61576fdc321c4a85e998a469bd377","user":{"login":"torsava","id":17247852,"node_id":"MDQ6VXNlcjE3MjQ3ODUy","avatar_url":"https://avatars.githubusercontent.com/u/17247852?v=4","gravatar_id":"","url":"https://api.github.com/users/torsava","html_url":"https://github.com/torsava","followers_url":"https://api.github.com/users/torsava/followers","following_url":"https://api.github.com/users/torsava/following{/other_user}","gists_url":"https://api.github.com/users/torsava/gists{/gist_id}","starred_url":"https://api.github.com/users/torsava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torsava/subscriptions","organizations_url":"https://api.github.com/users/torsava/orgs","repos_url":"https://api.github.com/users/torsava/repos","events_url":"https://api.github.com/users/torsava/events{/privacy}","received_events_url":"https://api.github.com/users/torsava/received_events","type":"User","user_view_type":"public","site_admin":false}},"base":{"label":"python:2.7","ref":"2.7","repo":{"id":81598961,"node_id":"MDEwOlJlcG9zaXRvcnk4MTU5ODk2MQ==","name":"cpython","full_name":"python/cpython","owner":{"login":"python","id":1525981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjU5ODE=","avatar_url":"https://avatars.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","user_view_type":"public","site_admin":false},"private":false,"fork":false,"archived":false,"disabled":false,"description":"The Python programming language","homepage":"https://www.python.org","language":"Python","visibility":"public","is_template":false,"topics":[],"forks_count":38225,"forks":38225,"stargazers_count":77704,"watchers_count":77704,"watchers":77704,"open_issues_count":9749,"open_issues":9749,"size":889896,"default_branch":"main","has_issues":true,"has_projects":true,"has_wiki":false,"has_pages":false,"has_downloads":false,"has_discussions":false,"has_pull_requests":true,"pushed_at":"2026-10-13T18:41:01Z","created_at":"2017-02-10T19:23:51Z","updated_at":"2026-10-13T18:41:58Z","allow_forking":true,"web_commit_signoff_required":false,"pull_request_creation_policy":"all","license":{"key":"other","name":"Other","url":null,"spdx_id":"NOASSERTION","node_id":"MDc6TGljZW5zZTA="},"url":"https://api.github.com/repos/python/cpython","html_url":"https://github.com/python/cpython","archive_url":"https://api.github.com/repos/python/cpython/{archive_format}{/ref}","assignees_url":"https://api.github.com/repos/python/cpython/assignees{/user}","blobs_url":"https://api.github.com/repos/python/cpython/git/blobs{/sha}","branches_url":"https://api.github.com/repos/python/cpython/branches{/branch}","collaborators_url":"https://api.github.com/repos/python/cpython/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/python/cpython/comments{/number}","commits_url":"https://api.github.com/repos/python/cpython/commits{/sha}","compare_url":"https://api.github.com/repos/python/cpython/compare/{base}...{head}","contents_url":"https://api.github.com/repos/python/cpython/contents/{+path}","contributors_url":"https://api.github.com/repos/python/cpython/contributors","deployments_url":"https://api.github.com/repos/python/cpython/deployments","downloads_url":"https://api.github.com/repos/python/cpython/downloads","events_url":"https://api.github.com/repos/python/cpython/events","forks_url":"https://api.github.com/repos/python/cpython/forks","git_commits_url":"https://api.github.com/repos/python/cpython/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/python/cpython/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/python/cpython/git/tags{/sha}","git_url":"git://github.com/python/cpython.git","issue_comment_url":"https://api.github.com/repos/python/cpython/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/python/cpython/issues/events{/number}","issues_url":"https://api.github.com/repos/python/cpython/issues{/number}","keys_url":"https://api.github.com/repos/python/cpython/keys{/key_id}","labels_url":"https://api.github.com/repos/python/cpython/labels{/name}","languages_url":"https://api.github.com/repos/python/cpython/languages","merges_url":"https://api.github.com/repos/python/cpython/merges","milestones_url":"https://api.github.com/repos/python/cpython/milestones{/number}","notifications_url":"https://api.github.com/repos/python/cpython/notifications{?since,all,participating}","pulls_url":"https://api.github.com/repos/python/cpython/pulls{/number}","releases_url":"https://api.github.com/repos/python/cpython/releases{/id}","ssh_url":"git@github.com:python/cpython.git","stargazers_url":"https://api.github.com/repos/python/cpython/stargazers","statuses_url":"https://api.github.com/repos/python/cpython/statuses/{sha}","subscribers_url":"https://api.github.com/repos/python/cpython/subscribers","subscription_url":"https://api.github.com/repos/python/cpython/subscription","tags_url":"https://api.github.com/repos/python/cpython/tags","teams_url":"https://api.github.com/repos/python/cpython/teams","trees_url":"https://api.github.com/repos/python/cpython/git/trees{/sha}","clone_url":"https://github.com/python/cpython.git","mirror_url":null,"hooks_url":"https://api.github.com/repos/python/cpython/hooks","svn_url":"https://github.com/python/cpython"},"sha":"453a6857023a0a2c714772cda8717ecf03de64f5","user":{"login":"python","id":1525981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MjU5ODE=","avatar_url":"https://avatars.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","user_view_type":"public","site_admin":false}},"_links":{"comments":{"href":"https://api.github.com/repos/python/cpython/issues/1522/comments"},"commits":{"href":"https://api.github.com/repos/python/cpython/pulls/1522/commits"},"statuses":{"href":"https://api.github.com/repos/python/cpython/statuses/6776eff0c1a61576fdc321c4a85e998a469bd377"},"html":{"href":"https://github.com/python/cpython/pull/1522"},"issue":{"href":"https://api.github.com/repos/python/cpython/issues/1522"},"review_comments":{"href":"https://api.github.com/repos/python/cpython/pulls/1522/comments"},"review_comment":{"href":"https://api.github.com/repos/python/cpython/pulls/comments{/number}"},"self":{"href":"https://api.github.com/repos/python/cpython/pulls/1522"}},"author_association":"CONTRIBUTOR","auto_merge":null,"draft":false,"merged":true,"mergeable":false,"rebaseable":false,"mergeable_state":"dirty","merged_by":{"login":"vstinner","id":194129,"node_id":"MDQ6VXNlcjE5NDEyOQ==","avatar_url":"https://avatars.githubusercontent.com/u/194129?v=4","gravatar_id":"","url":"https://api.github.com/users/vstinner","html_url":"https://github.com/vstinner","followers_url":"https://api.github.com/users/vstinner/followers","following_url":"https://api.github.com/users/vstinner/following{/other_user}","gists_url":"https://api.github.com/users/vstinner/gists{/gist_id}","starred_url":"https://api.github.com/users/vstinner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vstinner/subscriptions","organizations_url":"https://api.github.com/users/vstinner/orgs","repos_url":"https://api.github.com/users/vstinner/repos","events_url":"https://api.github.com/users/vstinner/events{/privacy}","received_events_url":"https://api.github.com/users/vstinner/received_events","type":"User","user_view_type":"public","site_admin":false},"comments":3,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":12,"deletions":7,"changed_files":3}