{"action":"created","comment":{"url":"https://api.github.com/repos/grpc/grpc/pulls/comments/69835740","id":69835740,"diff_hunk":"@@ -61,17 +127,24 @@ if [ \"${PLATFORM/Darwin}\" = \"$PLATFORM\" ]; then\n     fi\n   fi\n fi\n-\n-# Find `realpath`\n-if [ -x \"$(command -v realpath)\" ]; then\n-  export REALPATH=realpath\n-elif [ -x \"$(command -v grealpath)\" ]; then\n-  export REALPATH=grealpath\n-else\n-  echo 'Couldn'\"'\"'t find `realpath` or `grealpath`'\n-  exit 1\n+# TODO(atash) consider conceptualizing MinGW as a first-class platform and move\n+# these flags into our `setup.py`s\n+if [ $(is_mingw) ]; then\n+  # We're on MinGW, and our CFLAGS and LDFLAGS will be eaten by the void. Use\n+  # our work-around environment variables instead.\n+  PYTHON_MSVCR=`$PYTHON -c \"from distutils.cygwinccompiler import get_msvcr; print(get_msvcr()[0])\"`\n+  export GRPC_PYTHON_LDFLAGS=\"-static-libgcc -static-libstdc++ -mcrtdll=$PYTHON_MSVCR -static -lpthread\"\n+  # See https://sourceforge.net/p/mingw-w64/bugs/363/\n+  export GRPC_PYTHON_CFLAGS=\"-D_ftime=_ftime64 -D_timeb=__timeb64\"\n+  # TODO(atash) set these flags for only grpcio-tools (they don't do any harm to","path":"tools/run_tests/build_python.sh","position":124,"original_position":124,"commit_id":"91ca14a9652ad4a52fc401fa4e7a14863de8887c","original_commit_id":"91ca14a9652ad4a52fc401fa4e7a14863de8887c","user":{"login":"kpayson64","id":18316330,"avatar_url":"https://avatars.githubusercontent.com/u/18316330?v=3","gravatar_id":"","url":"https://api.github.com/users/kpayson64","html_url":"https://github.com/kpayson64","followers_url":"https://api.github.com/users/kpayson64/followers","following_url":"https://api.github.com/users/kpayson64/following{/other_user}","gists_url":"https://api.github.com/users/kpayson64/gists{/gist_id}","starred_url":"https://api.github.com/users/kpayson64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpayson64/subscriptions","organizations_url":"https://api.github.com/users/kpayson64/orgs","repos_url":"https://api.github.com/users/kpayson64/repos","events_url":"https://api.github.com/users/kpayson64/events{/privacy}","received_events_url":"https://api.github.com/users/kpayson64/received_events","type":"User","site_admin":false},"body":"It looks like these end up getting set for both grpcio and grpcio-tools.","created_at":"2016-07-07T00:34:21Z","updated_at":"2016-07-07T00:34:21Z","html_url":"https://github.com/grpc/grpc/pull/7195#discussion_r69835740","pull_request_url":"https://api.github.com/repos/grpc/grpc/pulls/7195","_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc/pulls/comments/69835740"},"html":{"href":"https://github.com/grpc/grpc/pull/7195#discussion_r69835740"},"pull_request":{"href":"https://api.github.com/repos/grpc/grpc/pulls/7195"}}},"pull_request":{"url":"https://api.github.com/repos/grpc/grpc/pulls/7195","id":75983632,"html_url":"https://github.com/grpc/grpc/pull/7195","diff_url":"https://github.com/grpc/grpc/pull/7195.diff","patch_url":"https://github.com/grpc/grpc/pull/7195.patch","issue_url":"https://api.github.com/repos/grpc/grpc/issues/7195","number":7195,"state":"open","locked":false,"title":"Fix Python interop unit-tests on Windows","user":{"login":"soltanmm","id":4889063,"avatar_url":"https://avatars.githubusercontent.com/u/4889063?v=3","gravatar_id":"","url":"https://api.github.com/users/soltanmm","html_url":"https://github.com/soltanmm","followers_url":"https://api.github.com/users/soltanmm/followers","following_url":"https://api.github.com/users/soltanmm/following{/other_user}","gists_url":"https://api.github.com/users/soltanmm/gists{/gist_id}","starred_url":"https://api.github.com/users/soltanmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltanmm/subscriptions","organizations_url":"https://api.github.com/users/soltanmm/orgs","repos_url":"https://api.github.com/users/soltanmm/repos","events_url":"https://api.github.com/users/soltanmm/events{/privacy}","received_events_url":"https://api.github.com/users/soltanmm/received_events","type":"User","site_admin":false},"body":"Depends on #6797, which depends on #6791.\r\n\r\nFixes #5163.","created_at":"2016-07-01T13:56:01Z","updated_at":"2016-07-07T00:34:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23bbbf02199ae355b30f475f31ce2c4ac23f3098","assignee":{"login":"nathanielmanistaatgoogle","id":10131044,"avatar_url":"https://avatars.githubusercontent.com/u/10131044?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielmanistaatgoogle","html_url":"https://github.com/nathanielmanistaatgoogle","followers_url":"https://api.github.com/users/nathanielmanistaatgoogle/followers","following_url":"https://api.github.com/users/nathanielmanistaatgoogle/following{/other_user}","gists_url":"https://api.github.com/users/nathanielmanistaatgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielmanistaatgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielmanistaatgoogle/subscriptions","organizations_url":"https://api.github.com/users/nathanielmanistaatgoogle/orgs","repos_url":"https://api.github.com/users/nathanielmanistaatgoogle/repos","events_url":"https://api.github.com/users/nathanielmanistaatgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielmanistaatgoogle/received_events","type":"User","site_admin":false},"assignees":[{"login":"nathanielmanistaatgoogle","id":10131044,"avatar_url":"https://avatars.githubusercontent.com/u/10131044?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielmanistaatgoogle","html_url":"https://github.com/nathanielmanistaatgoogle","followers_url":"https://api.github.com/users/nathanielmanistaatgoogle/followers","following_url":"https://api.github.com/users/nathanielmanistaatgoogle/following{/other_user}","gists_url":"https://api.github.com/users/nathanielmanistaatgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielmanistaatgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielmanistaatgoogle/subscriptions","organizations_url":"https://api.github.com/users/nathanielmanistaatgoogle/orgs","repos_url":"https://api.github.com/users/nathanielmanistaatgoogle/repos","events_url":"https://api.github.com/users/nathanielmanistaatgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielmanistaatgoogle/received_events","type":"User","site_admin":false},{"login":"kpayson64","id":18316330,"avatar_url":"https://avatars.githubusercontent.com/u/18316330?v=3","gravatar_id":"","url":"https://api.github.com/users/kpayson64","html_url":"https://github.com/kpayson64","followers_url":"https://api.github.com/users/kpayson64/followers","following_url":"https://api.github.com/users/kpayson64/following{/other_user}","gists_url":"https://api.github.com/users/kpayson64/gists{/gist_id}","starred_url":"https://api.github.com/users/kpayson64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpayson64/subscriptions","organizations_url":"https://api.github.com/users/kpayson64/orgs","repos_url":"https://api.github.com/users/kpayson64/repos","events_url":"https://api.github.com/users/kpayson64/events{/privacy}","received_events_url":"https://api.github.com/users/kpayson64/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/grpc/grpc/milestones/41","html_url":"https://github.com/grpc/grpc/milestones/2016/05/21%20Milestone","labels_url":"https://api.github.com/repos/grpc/grpc/milestones/41/labels","id":1724098,"number":41,"title":"2016/05/21 Milestone","description":"","creator":{"login":"nicolasnoble","id":7281574,"avatar_url":"https://avatars.githubusercontent.com/u/7281574?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasnoble","html_url":"https://github.com/nicolasnoble","followers_url":"https://api.github.com/users/nicolasnoble/followers","following_url":"https://api.github.com/users/nicolasnoble/following{/other_user}","gists_url":"https://api.github.com/users/nicolasnoble/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasnoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasnoble/subscriptions","organizations_url":"https://api.github.com/users/nicolasnoble/orgs","repos_url":"https://api.github.com/users/nicolasnoble/repos","events_url":"https://api.github.com/users/nicolasnoble/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasnoble/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":379,"state":"open","created_at":"2016-04-21T23:36:09Z","updated_at":"2016-07-06T23:51:21Z","due_on":"2016-05-21T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/grpc/grpc/pulls/7195/commits","review_comments_url":"https://api.github.com/repos/grpc/grpc/pulls/7195/comments","review_comment_url":"https://api.github.com/repos/grpc/grpc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/7195/comments","statuses_url":"https://api.github.com/repos/grpc/grpc/statuses/91ca14a9652ad4a52fc401fa4e7a14863de8887c","head":{"label":"soltanmm:winfix","ref":"winfix","sha":"91ca14a9652ad4a52fc401fa4e7a14863de8887c","user":{"login":"soltanmm","id":4889063,"avatar_url":"https://avatars.githubusercontent.com/u/4889063?v=3","gravatar_id":"","url":"https://api.github.com/users/soltanmm","html_url":"https://github.com/soltanmm","followers_url":"https://api.github.com/users/soltanmm/followers","following_url":"https://api.github.com/users/soltanmm/following{/other_user}","gists_url":"https://api.github.com/users/soltanmm/gists{/gist_id}","starred_url":"https://api.github.com/users/soltanmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltanmm/subscriptions","organizations_url":"https://api.github.com/users/soltanmm/orgs","repos_url":"https://api.github.com/users/soltanmm/repos","events_url":"https://api.github.com/users/soltanmm/events{/privacy}","received_events_url":"https://api.github.com/users/soltanmm/received_events","type":"User","site_admin":false},"repo":{"id":31384607,"name":"grpc","full_name":"soltanmm/grpc","owner":{"login":"soltanmm","id":4889063,"avatar_url":"https://avatars.githubusercontent.com/u/4889063?v=3","gravatar_id":"","url":"https://api.github.com/users/soltanmm","html_url":"https://github.com/soltanmm","followers_url":"https://api.github.com/users/soltanmm/followers","following_url":"https://api.github.com/users/soltanmm/following{/other_user}","gists_url":"https://api.github.com/users/soltanmm/gists{/gist_id}","starred_url":"https://api.github.com/users/soltanmm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soltanmm/subscriptions","organizations_url":"https://api.github.com/users/soltanmm/orgs","repos_url":"https://api.github.com/users/soltanmm/repos","events_url":"https://api.github.com/users/soltanmm/events{/privacy}","received_events_url":"https://api.github.com/users/soltanmm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soltanmm/grpc","description":"The C based gRPC (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)","fork":true,"url":"https://api.github.com/repos/soltanmm/grpc","forks_url":"https://api.github.com/repos/soltanmm/grpc/forks","keys_url":"https://api.github.com/repos/soltanmm/grpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soltanmm/grpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soltanmm/grpc/teams","hooks_url":"https://api.github.com/repos/soltanmm/grpc/hooks","issue_events_url":"https://api.github.com/repos/soltanmm/grpc/issues/events{/number}","events_url":"https://api.github.com/repos/soltanmm/grpc/events","assignees_url":"https://api.github.com/repos/soltanmm/grpc/assignees{/user}","branches_url":"https://api.github.com/repos/soltanmm/grpc/branches{/branch}","tags_url":"https://api.github.com/repos/soltanmm/grpc/tags","blobs_url":"https://api.github.com/repos/soltanmm/grpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soltanmm/grpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soltanmm/grpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/soltanmm/grpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soltanmm/grpc/statuses/{sha}","languages_url":"https://api.github.com/repos/soltanmm/grpc/languages","stargazers_url":"https://api.github.com/repos/soltanmm/grpc/stargazers","contributors_url":"https://api.github.com/repos/soltanmm/grpc/contributors","subscribers_url":"https://api.github.com/repos/soltanmm/grpc/subscribers","subscription_url":"https://api.github.com/repos/soltanmm/grpc/subscription","commits_url":"https://api.github.com/repos/soltanmm/grpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/soltanmm/grpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/soltanmm/grpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/soltanmm/grpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/soltanmm/grpc/contents/{+path}","compare_url":"https://api.github.com/repos/soltanmm/grpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soltanmm/grpc/merges","archive_url":"https://api.github.com/repos/soltanmm/grpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soltanmm/grpc/downloads","issues_url":"https://api.github.com/repos/soltanmm/grpc/issues{/number}","pulls_url":"https://api.github.com/repos/soltanmm/grpc/pulls{/number}","milestones_url":"https://api.github.com/repos/soltanmm/grpc/milestones{/number}","notifications_url":"https://api.github.com/repos/soltanmm/grpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soltanmm/grpc/labels{/name}","releases_url":"https://api.github.com/repos/soltanmm/grpc/releases{/id}","deployments_url":"https://api.github.com/repos/soltanmm/grpc/deployments","created_at":"2015-02-26T19:25:31Z","updated_at":"2016-01-11T20:33:54Z","pushed_at":"2016-07-06T18:13:42Z","git_url":"git://github.com/soltanmm/grpc.git","ssh_url":"git@github.com:soltanmm/grpc.git","clone_url":"https://github.com/soltanmm/grpc.git","svn_url":"https://github.com/soltanmm/grpc","homepage":"","size":70201,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"grpc:master","ref":"master","sha":"dcca468abe87f76bcb8fd85973781612742da9df","user":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"repo":{"id":27729880,"name":"grpc","full_name":"grpc/grpc","owner":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grpc/grpc","description":"The C based gRPC (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)","fork":false,"url":"https://api.github.com/repos/grpc/grpc","forks_url":"https://api.github.com/repos/grpc/grpc/forks","keys_url":"https://api.github.com/repos/grpc/grpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grpc/grpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grpc/grpc/teams","hooks_url":"https://api.github.com/repos/grpc/grpc/hooks","issue_events_url":"https://api.github.com/repos/grpc/grpc/issues/events{/number}","events_url":"https://api.github.com/repos/grpc/grpc/events","assignees_url":"https://api.github.com/repos/grpc/grpc/assignees{/user}","branches_url":"https://api.github.com/repos/grpc/grpc/branches{/branch}","tags_url":"https://api.github.com/repos/grpc/grpc/tags","blobs_url":"https://api.github.com/repos/grpc/grpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grpc/grpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grpc/grpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/grpc/grpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grpc/grpc/statuses/{sha}","languages_url":"https://api.github.com/repos/grpc/grpc/languages","stargazers_url":"https://api.github.com/repos/grpc/grpc/stargazers","contributors_url":"https://api.github.com/repos/grpc/grpc/contributors","subscribers_url":"https://api.github.com/repos/grpc/grpc/subscribers","subscription_url":"https://api.github.com/repos/grpc/grpc/subscription","commits_url":"https://api.github.com/repos/grpc/grpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/grpc/grpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/grpc/grpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/grpc/grpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/grpc/grpc/contents/{+path}","compare_url":"https://api.github.com/repos/grpc/grpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grpc/grpc/merges","archive_url":"https://api.github.com/repos/grpc/grpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grpc/grpc/downloads","issues_url":"https://api.github.com/repos/grpc/grpc/issues{/number}","pulls_url":"https://api.github.com/repos/grpc/grpc/pulls{/number}","milestones_url":"https://api.github.com/repos/grpc/grpc/milestones{/number}","notifications_url":"https://api.github.com/repos/grpc/grpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grpc/grpc/labels{/name}","releases_url":"https://api.github.com/repos/grpc/grpc/releases{/id}","deployments_url":"https://api.github.com/repos/grpc/grpc/deployments","created_at":"2014-12-08T18:58:53Z","updated_at":"2016-07-06T22:42:44Z","pushed_at":"2016-07-07T00:14:09Z","git_url":"git://github.com/grpc/grpc.git","ssh_url":"git@github.com:grpc/grpc.git","clone_url":"https://github.com/grpc/grpc.git","svn_url":"https://github.com/grpc/grpc","homepage":"","size":193378,"stargazers_count":5394,"watchers_count":5394,"language":"C","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":996,"mirror_url":null,"open_issues_count":700,"forks":996,"open_issues":700,"watchers":5394,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc/pulls/7195"},"html":{"href":"https://github.com/grpc/grpc/pull/7195"},"issue":{"href":"https://api.github.com/repos/grpc/grpc/issues/7195"},"comments":{"href":"https://api.github.com/repos/grpc/grpc/issues/7195/comments"},"review_comments":{"href":"https://api.github.com/repos/grpc/grpc/pulls/7195/comments"},"review_comment":{"href":"https://api.github.com/repos/grpc/grpc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grpc/grpc/pulls/7195/commits"},"statuses":{"href":"https://api.github.com/repos/grpc/grpc/statuses/91ca14a9652ad4a52fc401fa4e7a14863de8887c"}}}}
{"actor":{"display_login":"kpayson64"}}