{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/20674","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/20674/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/20674/comments","events_url":"https://api.github.com/repos/apple/swift/issues/20674/events","html_url":"https://github.com/apple/swift/pull/20674","id":381999498,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxODEzNDcz","number":20674,"title":"Added support for loading Python at runtime (supports both Python 3 and 2)","user":{"login":"pvieito","id":1706695,"node_id":"MDQ6VXNlcjE3MDY2OTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1706695?v=4","gravatar_id":"","url":"https://api.github.com/users/pvieito","html_url":"https://github.com/pvieito","followers_url":"https://api.github.com/users/pvieito/followers","following_url":"https://api.github.com/users/pvieito/following{/other_user}","gists_url":"https://api.github.com/users/pvieito/gists{/gist_id}","starred_url":"https://api.github.com/users/pvieito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pvieito/subscriptions","organizations_url":"https://api.github.com/users/pvieito/orgs","repos_url":"https://api.github.com/users/pvieito/repos","events_url":"https://api.github.com/users/pvieito/events{/privacy}","received_events_url":"https://api.github.com/users/pvieito/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2018-11-18T20:57:59Z","updated_at":"2019-12-04T06:11:09Z","closed_at":"2018-12-04T06:43:34Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/20674","html_url":"https://github.com/apple/swift/pull/20674","diff_url":"https://github.com/apple/swift/pull/20674.diff","patch_url":"https://github.com/apple/swift/pull/20674.patch"},"body":"Added new PythonLibrary struct to load Python library and symbols dynamically at runtime\r\n\r\n- This adds support for both Python 3 and 2 with the same codebase.\r\n- You can force a version of Python with the PYTHON_VERSION environment variable, a Python library path with PYTHON_LIBRARY and enable logging with PYTHON_LOADER_LOGGING.\r\n- The implementation comes from the PythonKit Swift package (https://github.com/pvieito/PythonKit) removing the Foundation dependency."},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/561493540","html_url":"https://github.com/apple/swift/pull/20674#issuecomment-561493540","issue_url":"https://api.github.com/repos/apple/swift/issues/20674","id":561493540,"node_id":"MDEyOklzc3VlQ29tbWVudDU2MTQ5MzU0MA==","user":{"login":"H-World","id":21999737,"node_id":"MDQ6VXNlcjIxOTk5NzM3","avatar_url":"https://avatars1.githubusercontent.com/u/21999737?v=4","gravatar_id":"","url":"https://api.github.com/users/H-World","html_url":"https://github.com/H-World","followers_url":"https://api.github.com/users/H-World/followers","following_url":"https://api.github.com/users/H-World/following{/other_user}","gists_url":"https://api.github.com/users/H-World/gists{/gist_id}","starred_url":"https://api.github.com/users/H-World/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H-World/subscriptions","organizations_url":"https://api.github.com/users/H-World/orgs","repos_url":"https://api.github.com/users/H-World/repos","events_url":"https://api.github.com/users/H-World/events{/privacy}","received_events_url":"https://api.github.com/users/H-World/received_events","type":"User","site_admin":false},"created_at":"2019-12-04T06:11:09Z","updated_at":"2019-12-04T06:11:09Z","author_association":"NONE","body":"@pvieito  我想知道在Mac上怎么使用指定版本的python，现在我使用PythonLibrary.useVersion(3)，会崩溃Python library not found. Set the PYTHON_LIBRARY environment variable with the path to a Python library.但是我又找不到方法去指定PYTHON_LIBRARY"}}
{"actor":{"display_login":"H-World"}}