{"action":"created","issue":{"url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/63","repository_url":"https://api.github.com/repos/fedora-python/pyp2rpm","labels_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/63/comments","events_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/63/events","html_url":"https://github.com/fedora-python/pyp2rpm/issues/63","id":163361559,"number":63,"title":"Conflicts between python2-* and python3-* submodule on executables","user":{"login":"xsuchy","id":85769,"avatar_url":"https://avatars.githubusercontent.com/u/85769?v=3","gravatar_id":"","url":"https://api.github.com/users/xsuchy","html_url":"https://github.com/xsuchy","followers_url":"https://api.github.com/users/xsuchy/followers","following_url":"https://api.github.com/users/xsuchy/following{/other_user}","gists_url":"https://api.github.com/users/xsuchy/gists{/gist_id}","starred_url":"https://api.github.com/users/xsuchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsuchy/subscriptions","organizations_url":"https://api.github.com/users/xsuchy/orgs","repos_url":"https://api.github.com/users/xsuchy/repos","events_url":"https://api.github.com/users/xsuchy/events{/privacy}","received_events_url":"https://api.github.com/users/xsuchy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-01T09:57:28Z","updated_at":"2016-07-14T19:35:12Z","closed_at":null,"body":"```\r\npyp2rpm --srpm pyflakes\r\n```\r\n\r\nThis will create python2 and python3 subpackage. And both contains /usr/bin/pyflakes. Which will result in conflicts if you want to install both (e.g. as buildrequires).\r\n\r\n```\r\nDEBUG util.py:421:  Error: Transaction check error:\r\nDEBUG util.py:421:    file /usr/bin/pyflakes conflicts between attempted installs of pyflakes-1.2.3-1.fc25.noarch and python3-pyflakes-1.2.3-1.fc25.noarch\r\n```\r\n\r\nI think pyp2rpm should somehow try to address it.\r\n"},"comment":{"url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/comments/232769106","html_url":"https://github.com/fedora-python/pyp2rpm/issues/63#issuecomment-232769106","issue_url":"https://api.github.com/repos/fedora-python/pyp2rpm/issues/63","id":232769106,"user":{"login":"mcyprian","id":12859854,"avatar_url":"https://avatars.githubusercontent.com/u/12859854?v=3","gravatar_id":"","url":"https://api.github.com/users/mcyprian","html_url":"https://github.com/mcyprian","followers_url":"https://api.github.com/users/mcyprian/followers","following_url":"https://api.github.com/users/mcyprian/following{/other_user}","gists_url":"https://api.github.com/users/mcyprian/gists{/gist_id}","starred_url":"https://api.github.com/users/mcyprian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcyprian/subscriptions","organizations_url":"https://api.github.com/users/mcyprian/orgs","repos_url":"https://api.github.com/users/mcyprian/repos","events_url":"https://api.github.com/users/mcyprian/events{/privacy}","received_events_url":"https://api.github.com/users/mcyprian/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T19:35:12Z","updated_at":"2016-07-14T19:35:12Z","body":"pyp2rpm pyflakes generates following %files section\r\n\r\n```\r\n%files -n python2-%{pypi_name} \r\n%doc README.rst LICENSE\r\n%{_bindir}/pyflakes\r\n%{_bindir}/pyflakes-2\r\n%{_bindir}/pyflakes-%{python2_version}\r\n%{python2_sitelib}/%{pypi_name}\r\n%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info\r\n\r\n%files -n python3-%{pypi_name} \r\n%doc README.rst LICENSE\r\n%{_bindir}/pyflakes-3\r\n%{_bindir}/pyflakes-%{python3_version}\r\n%{python3_sitelib}/%{pypi_name}\r\n%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info\r\n```\r\nresult of  --srpm option can be successfully built and the content of rpms is alright. I can install both to my system without any errors.\r\n\r\nIt seems that pyflakes-1.2.3-1.fc25.noarch is package from fedora repositories http://koji.fedoraproject.org/koji/buildinfo?buildID=762537, name of the package generated by pyp2rpm would be python2-pyflakes-1.2.3-1.fc25.noarch.\r\n\r\npython3 subpackage contains binary called foo (/usr/bin/pyflakes in this case) only if it is generated using -b3 option. I am not sure if this is the best behavior but it doesn't violate the guidelines if I understand them correctly."}}
{"actor":{"display_login":"mcyprian"}}