{"action":"created","comment":{"url":"https://api.github.com/repos/panda3d/panda3d/pulls/comments/54273010","id":54273010,"diff_hunk":"@@ -0,0 +1,195 @@\n+\"\"\"\n+Generates a wheel (.whl) file from the output of makepanda.\n+\n+Since the wheel requires special linking, this will only work if compiled with\n+the `--wheel` parameter.\n+\"\"\"\n+from __future__ import print_function, unicode_literals\n+from distutils.util import get_platform as get_dist\n+import json\n+\n+import sys\n+import os\n+from os.path import join\n+import shutil\n+import zipfile\n+from makepandacore import ColorText\n+\n+\n+def get_platform():\n+    p = get_dist().replace('-', '_').replace('.', '_')\n+    if \"linux\" in p:\n+        print(ColorText(\"red\", \"WARNING:\") +\n+              \" Linux-specific wheel files are not supported.\"\n+              \" We will generate this wheel as a generic package instead.\")\n+        return \"any\"\n+    return p\n+\n+\n+# Global filepaths\n+LIB_SRC = join(\"built\", \"lib\")  # TODO: A special wheel lib dir\n+PANDA3D_SRC = join(\"built\", \"panda3d\")  # TODO: Empty?\n+PANDAC_SRC = join(\"built\", \"pandac\")\n+DIRECT_SRC = join(\"built\", \"direct\")\n+MODELS_SRC = join(\"built\", \"models\")\n+PLUGINS_SRC = join(\"built\", \"plugins\")\n+ETC_SRC = join(\"built\", \"etc\")\n+BIN_SRC = join(\"built\", \"bin\")\n+LICENSE_SRC = \"LICENSE\"\n+README_SRC = \"README.md\"\n+WHEEL_TARGET = join(\"built\", \"wheel\")\n+PANDA3D_TARGET = join(WHEEL_TARGET, \"panda3d\")\n+PANDAC_TARGET = join(WHEEL_TARGET, \"pandac\")\n+DIRECT_TARGET = join(WHEEL_TARGET, \"direct\")\n+\n+# Other global parameters\n+PY_VERSION = \"py3\" if sys.version_info >= (3, 0) else \"py2\"\n+PLATFORM_VERSION = get_platform()\n+\n+WHEEL_DATA = \"\"\"Wheel-Version: 1.0\n+Generator: bdist_wheel 1.0\n+Root-Is-Purelib: false\n+Tag: py2-none-any\n+Tag: py3-none-any","path":"makepanda/makewheel.py","position":53,"original_position":53,"commit_id":"0b4b910c62952fdc05efdb56417529ea6cb2db9b","original_commit_id":"0b4b910c62952fdc05efdb56417529ea6cb2db9b","user":{"login":"rdb","id":194842,"avatar_url":"https://avatars.githubusercontent.com/u/194842?v=3","gravatar_id":"","url":"https://api.github.com/users/rdb","html_url":"https://github.com/rdb","followers_url":"https://api.github.com/users/rdb/followers","following_url":"https://api.github.com/users/rdb/following{/other_user}","gists_url":"https://api.github.com/users/rdb/gists{/gist_id}","starred_url":"https://api.github.com/users/rdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdb/subscriptions","organizations_url":"https://api.github.com/users/rdb/orgs","repos_url":"https://api.github.com/users/rdb/repos","events_url":"https://api.github.com/users/rdb/events{/privacy}","received_events_url":"https://api.github.com/users/rdb/received_events","type":"User","site_admin":false},"body":"Should this tag not match what is indicated by the filename, ie. dependence on a specific CPython version?","created_at":"2016-02-26T17:22:42Z","updated_at":"2016-02-26T17:22:42Z","html_url":"https://github.com/panda3d/panda3d/pull/83#discussion_r54273010","pull_request_url":"https://api.github.com/repos/panda3d/panda3d/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/panda3d/panda3d/pulls/comments/54273010"},"html":{"href":"https://github.com/panda3d/panda3d/pull/83#discussion_r54273010"},"pull_request":{"href":"https://api.github.com/repos/panda3d/panda3d/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/panda3d/panda3d/pulls/83","id":60873332,"html_url":"https://github.com/panda3d/panda3d/pull/83","diff_url":"https://github.com/panda3d/panda3d/pull/83.diff","patch_url":"https://github.com/panda3d/panda3d/pull/83.patch","issue_url":"https://api.github.com/repos/panda3d/panda3d/issues/83","number":83,"state":"open","locked":false,"title":"Add a --wheel flag for generating `.whl` distributions.","user":{"login":"pennomi","id":832972,"avatar_url":"https://avatars.githubusercontent.com/u/832972?v=3","gravatar_id":"","url":"https://api.github.com/users/pennomi","html_url":"https://github.com/pennomi","followers_url":"https://api.github.com/users/pennomi/followers","following_url":"https://api.github.com/users/pennomi/following{/other_user}","gists_url":"https://api.github.com/users/pennomi/gists{/gist_id}","starred_url":"https://api.github.com/users/pennomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pennomi/subscriptions","organizations_url":"https://api.github.com/users/pennomi/orgs","repos_url":"https://api.github.com/users/pennomi/repos","events_url":"https://api.github.com/users/pennomi/events{/privacy}","received_events_url":"https://api.github.com/users/pennomi/received_events","type":"User","site_admin":false},"body":"Here's the first revision of the wheel generator, ready for criticism. I've only tested on Linux, but I don't see any reason it shouldn't work on all platforms as-is.\r\n\r\nFor Windows and Mac, we can upload these archives to PyPI, but for Linux, we'll need to host a URL for them to live at, since PyPI doesn't allow binary distributions for Linux.","created_at":"2016-02-26T17:13:48Z","updated_at":"2016-02-26T17:22:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"877104e5ec69bad4f170c2189f33dcf1fbfabf61","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/panda3d/panda3d/pulls/83/commits","review_comments_url":"https://api.github.com/repos/panda3d/panda3d/pulls/83/comments","review_comment_url":"https://api.github.com/repos/panda3d/panda3d/pulls/comments{/number}","comments_url":"https://api.github.com/repos/panda3d/panda3d/issues/83/comments","statuses_url":"https://api.github.com/repos/panda3d/panda3d/statuses/0b4b910c62952fdc05efdb56417529ea6cb2db9b","head":{"label":"pennomi:master","ref":"master","sha":"0b4b910c62952fdc05efdb56417529ea6cb2db9b","user":{"login":"pennomi","id":832972,"avatar_url":"https://avatars.githubusercontent.com/u/832972?v=3","gravatar_id":"","url":"https://api.github.com/users/pennomi","html_url":"https://github.com/pennomi","followers_url":"https://api.github.com/users/pennomi/followers","following_url":"https://api.github.com/users/pennomi/following{/other_user}","gists_url":"https://api.github.com/users/pennomi/gists{/gist_id}","starred_url":"https://api.github.com/users/pennomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pennomi/subscriptions","organizations_url":"https://api.github.com/users/pennomi/orgs","repos_url":"https://api.github.com/users/pennomi/repos","events_url":"https://api.github.com/users/pennomi/events{/privacy}","received_events_url":"https://api.github.com/users/pennomi/received_events","type":"User","site_admin":false},"repo":{"id":36875130,"name":"panda3d","full_name":"pennomi/panda3d","owner":{"login":"pennomi","id":832972,"avatar_url":"https://avatars.githubusercontent.com/u/832972?v=3","gravatar_id":"","url":"https://api.github.com/users/pennomi","html_url":"https://github.com/pennomi","followers_url":"https://api.github.com/users/pennomi/followers","following_url":"https://api.github.com/users/pennomi/following{/other_user}","gists_url":"https://api.github.com/users/pennomi/gists{/gist_id}","starred_url":"https://api.github.com/users/pennomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pennomi/subscriptions","organizations_url":"https://api.github.com/users/pennomi/orgs","repos_url":"https://api.github.com/users/pennomi/repos","events_url":"https://api.github.com/users/pennomi/events{/privacy}","received_events_url":"https://api.github.com/users/pennomi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pennomi/panda3d","description":"The Panda3D free open-source cross-platform game engine","fork":true,"url":"https://api.github.com/repos/pennomi/panda3d","forks_url":"https://api.github.com/repos/pennomi/panda3d/forks","keys_url":"https://api.github.com/repos/pennomi/panda3d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pennomi/panda3d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pennomi/panda3d/teams","hooks_url":"https://api.github.com/repos/pennomi/panda3d/hooks","issue_events_url":"https://api.github.com/repos/pennomi/panda3d/issues/events{/number}","events_url":"https://api.github.com/repos/pennomi/panda3d/events","assignees_url":"https://api.github.com/repos/pennomi/panda3d/assignees{/user}","branches_url":"https://api.github.com/repos/pennomi/panda3d/branches{/branch}","tags_url":"https://api.github.com/repos/pennomi/panda3d/tags","blobs_url":"https://api.github.com/repos/pennomi/panda3d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pennomi/panda3d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pennomi/panda3d/git/refs{/sha}","trees_url":"https://api.github.com/repos/pennomi/panda3d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pennomi/panda3d/statuses/{sha}","languages_url":"https://api.github.com/repos/pennomi/panda3d/languages","stargazers_url":"https://api.github.com/repos/pennomi/panda3d/stargazers","contributors_url":"https://api.github.com/repos/pennomi/panda3d/contributors","subscribers_url":"https://api.github.com/repos/pennomi/panda3d/subscribers","subscription_url":"https://api.github.com/repos/pennomi/panda3d/subscription","commits_url":"https://api.github.com/repos/pennomi/panda3d/commits{/sha}","git_commits_url":"https://api.github.com/repos/pennomi/panda3d/git/commits{/sha}","comments_url":"https://api.github.com/repos/pennomi/panda3d/comments{/number}","issue_comment_url":"https://api.github.com/repos/pennomi/panda3d/issues/comments{/number}","contents_url":"https://api.github.com/repos/pennomi/panda3d/contents/{+path}","compare_url":"https://api.github.com/repos/pennomi/panda3d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pennomi/panda3d/merges","archive_url":"https://api.github.com/repos/pennomi/panda3d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pennomi/panda3d/downloads","issues_url":"https://api.github.com/repos/pennomi/panda3d/issues{/number}","pulls_url":"https://api.github.com/repos/pennomi/panda3d/pulls{/number}","milestones_url":"https://api.github.com/repos/pennomi/panda3d/milestones{/number}","notifications_url":"https://api.github.com/repos/pennomi/panda3d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pennomi/panda3d/labels{/name}","releases_url":"https://api.github.com/repos/pennomi/panda3d/releases{/id}","deployments_url":"https://api.github.com/repos/pennomi/panda3d/deployments","created_at":"2015-06-04T14:26:14Z","updated_at":"2016-02-26T16:54:27Z","pushed_at":"2016-02-26T17:10:08Z","git_url":"git://github.com/pennomi/panda3d.git","ssh_url":"git@github.com:pennomi/panda3d.git","clone_url":"https://github.com/pennomi/panda3d.git","svn_url":"https://github.com/pennomi/panda3d","homepage":"https://www.panda3d.org/","size":73577,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"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":"panda3d:master","ref":"master","sha":"d9ec4d402aabf5132ced6937150024ef72e18711","user":{"login":"panda3d","id":590956,"avatar_url":"https://avatars.githubusercontent.com/u/590956?v=3","gravatar_id":"","url":"https://api.github.com/users/panda3d","html_url":"https://github.com/panda3d","followers_url":"https://api.github.com/users/panda3d/followers","following_url":"https://api.github.com/users/panda3d/following{/other_user}","gists_url":"https://api.github.com/users/panda3d/gists{/gist_id}","starred_url":"https://api.github.com/users/panda3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panda3d/subscriptions","organizations_url":"https://api.github.com/users/panda3d/orgs","repos_url":"https://api.github.com/users/panda3d/repos","events_url":"https://api.github.com/users/panda3d/events{/privacy}","received_events_url":"https://api.github.com/users/panda3d/received_events","type":"Organization","site_admin":false},"repo":{"id":13212165,"name":"panda3d","full_name":"panda3d/panda3d","owner":{"login":"panda3d","id":590956,"avatar_url":"https://avatars.githubusercontent.com/u/590956?v=3","gravatar_id":"","url":"https://api.github.com/users/panda3d","html_url":"https://github.com/panda3d","followers_url":"https://api.github.com/users/panda3d/followers","following_url":"https://api.github.com/users/panda3d/following{/other_user}","gists_url":"https://api.github.com/users/panda3d/gists{/gist_id}","starred_url":"https://api.github.com/users/panda3d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panda3d/subscriptions","organizations_url":"https://api.github.com/users/panda3d/orgs","repos_url":"https://api.github.com/users/panda3d/repos","events_url":"https://api.github.com/users/panda3d/events{/privacy}","received_events_url":"https://api.github.com/users/panda3d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/panda3d/panda3d","description":"The Panda3D free open-source cross-platform game engine with excellent Python support","fork":false,"url":"https://api.github.com/repos/panda3d/panda3d","forks_url":"https://api.github.com/repos/panda3d/panda3d/forks","keys_url":"https://api.github.com/repos/panda3d/panda3d/keys{/key_id}","collaborators_url":"https://api.github.com/repos/panda3d/panda3d/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/panda3d/panda3d/teams","hooks_url":"https://api.github.com/repos/panda3d/panda3d/hooks","issue_events_url":"https://api.github.com/repos/panda3d/panda3d/issues/events{/number}","events_url":"https://api.github.com/repos/panda3d/panda3d/events","assignees_url":"https://api.github.com/repos/panda3d/panda3d/assignees{/user}","branches_url":"https://api.github.com/repos/panda3d/panda3d/branches{/branch}","tags_url":"https://api.github.com/repos/panda3d/panda3d/tags","blobs_url":"https://api.github.com/repos/panda3d/panda3d/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/panda3d/panda3d/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/panda3d/panda3d/git/refs{/sha}","trees_url":"https://api.github.com/repos/panda3d/panda3d/git/trees{/sha}","statuses_url":"https://api.github.com/repos/panda3d/panda3d/statuses/{sha}","languages_url":"https://api.github.com/repos/panda3d/panda3d/languages","stargazers_url":"https://api.github.com/repos/panda3d/panda3d/stargazers","contributors_url":"https://api.github.com/repos/panda3d/panda3d/contributors","subscribers_url":"https://api.github.com/repos/panda3d/panda3d/subscribers","subscription_url":"https://api.github.com/repos/panda3d/panda3d/subscription","commits_url":"https://api.github.com/repos/panda3d/panda3d/commits{/sha}","git_commits_url":"https://api.github.com/repos/panda3d/panda3d/git/commits{/sha}","comments_url":"https://api.github.com/repos/panda3d/panda3d/comments{/number}","issue_comment_url":"https://api.github.com/repos/panda3d/panda3d/issues/comments{/number}","contents_url":"https://api.github.com/repos/panda3d/panda3d/contents/{+path}","compare_url":"https://api.github.com/repos/panda3d/panda3d/compare/{base}...{head}","merges_url":"https://api.github.com/repos/panda3d/panda3d/merges","archive_url":"https://api.github.com/repos/panda3d/panda3d/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/panda3d/panda3d/downloads","issues_url":"https://api.github.com/repos/panda3d/panda3d/issues{/number}","pulls_url":"https://api.github.com/repos/panda3d/panda3d/pulls{/number}","milestones_url":"https://api.github.com/repos/panda3d/panda3d/milestones{/number}","notifications_url":"https://api.github.com/repos/panda3d/panda3d/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/panda3d/panda3d/labels{/name}","releases_url":"https://api.github.com/repos/panda3d/panda3d/releases{/id}","deployments_url":"https://api.github.com/repos/panda3d/panda3d/deployments","created_at":"2013-09-30T10:20:25Z","updated_at":"2016-02-25T05:02:54Z","pushed_at":"2016-02-26T17:13:48Z","git_url":"git://github.com/panda3d/panda3d.git","ssh_url":"git@github.com:panda3d/panda3d.git","clone_url":"https://github.com/panda3d/panda3d.git","svn_url":"https://github.com/panda3d/panda3d","homepage":"https://www.panda3d.org/","size":236026,"stargazers_count":365,"watchers_count":365,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":null,"open_issues_count":7,"forks":118,"open_issues":7,"watchers":365,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/panda3d/panda3d/pulls/83"},"html":{"href":"https://github.com/panda3d/panda3d/pull/83"},"issue":{"href":"https://api.github.com/repos/panda3d/panda3d/issues/83"},"comments":{"href":"https://api.github.com/repos/panda3d/panda3d/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/panda3d/panda3d/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/panda3d/panda3d/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/panda3d/panda3d/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/panda3d/panda3d/statuses/0b4b910c62952fdc05efdb56417529ea6cb2db9b"}}}}