{"action":"created","issue":{"url":"https://api.github.com/repos/siconos/siconos/issues/96","repository_url":"https://api.github.com/repos/siconos/siconos","labels_url":"https://api.github.com/repos/siconos/siconos/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/siconos/siconos/issues/96/comments","events_url":"https://api.github.com/repos/siconos/siconos/issues/96/events","html_url":"https://github.com/siconos/siconos/issues/96","id":198927119,"number":96,"title":"[python] support building bindings for multiple python version ","user":{"login":"xhub","id":1494920,"avatar_url":"https://avatars.githubusercontent.com/u/1494920?v=3","gravatar_id":"","url":"https://api.github.com/users/xhub","html_url":"https://github.com/xhub","followers_url":"https://api.github.com/users/xhub/followers","following_url":"https://api.github.com/users/xhub/following{/other_user}","gists_url":"https://api.github.com/users/xhub/gists{/gist_id}","starred_url":"https://api.github.com/users/xhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xhub/subscriptions","organizations_url":"https://api.github.com/users/xhub/orgs","repos_url":"https://api.github.com/users/xhub/repos","events_url":"https://api.github.com/users/xhub/events{/privacy}","received_events_url":"https://api.github.com/users/xhub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-01-05T10:49:44Z","updated_at":"2017-01-06T19:18:14Z","closed_at":null,"body":"Right now we support building only against one python version. It is standard in distributions to provide both python2 and python3 bindings. We already support building against python2 and python3, but only one at a time. It would be nice to support building against multiple python versions out of the box.\r\n\r\nWe my want to use setup.py to build the python bindings, but that require some work. However, it seems to to be the de facto way of building extensions."},"comment":{"url":"https://api.github.com/repos/siconos/siconos/issues/comments/270981945","html_url":"https://github.com/siconos/siconos/issues/96#issuecomment-270981945","issue_url":"https://api.github.com/repos/siconos/siconos/issues/96","id":270981945,"user":{"login":"radarsat1","id":66805,"avatar_url":"https://avatars.githubusercontent.com/u/66805?v=3","gravatar_id":"","url":"https://api.github.com/users/radarsat1","html_url":"https://github.com/radarsat1","followers_url":"https://api.github.com/users/radarsat1/followers","following_url":"https://api.github.com/users/radarsat1/following{/other_user}","gists_url":"https://api.github.com/users/radarsat1/gists{/gist_id}","starred_url":"https://api.github.com/users/radarsat1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radarsat1/subscriptions","organizations_url":"https://api.github.com/users/radarsat1/orgs","repos_url":"https://api.github.com/users/radarsat1/repos","events_url":"https://api.github.com/users/radarsat1/events{/privacy}","received_events_url":"https://api.github.com/users/radarsat1/received_events","type":"User","site_admin":false},"created_at":"2017-01-06T19:18:14Z","updated_at":"2017-01-06T19:18:14Z","body":"Just reading up on this, it seems even a CMake developer recommends just calling CMake twice for each Python version.  Supporting both may be next to impossible without official CMake support.  Although this is from 4 years ago, maybe things have changed, but I can't find anything more recent.\r\n\r\nhttps://public.kitware.com/Bug/bug_relationship_graph.php?bug_id=13857\r\n\r\nOn the other hand I had a look at the VERBOSE=1 output for CMake running swig when set to a Python3 executable, and it does not provide the `-py3` flag as far as I can tell.\r\n\r\nIf we do want to make the effort to build both, probably the only reasonable way is to switch for calling setup.py from each supported Python and using a fake 'timestamp' target: https://bloerg.net/2012/11/10/cmake-and-distutils.html"}}
{"actor":{"display_login":"radarsat1"}}