Bug 1314537
Summary: | python-importanize - requires both python2 and python3 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | William Moreno <williamjmorenor> |
Component: | python-importanize | Assignee: | Sundeep Anand <suanand> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 24 | CC: | pviktori, suanand |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-importanize-0.4.1-5.fc23 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-04-22 01:26:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1285816 |
Description
William Moreno
2016-03-03 21:03:02 UTC
Actually, the guidelines specify how the scripts should be named, so that users can use a sane "default" but also explicitly request a specific version: https://fedoraproject.org/wiki/Packaging:Python#Naming There are two cases: 1) If the script works the same under both python2 and python3, only the python3 scripts can be packaged 2) Otherwise, there should be /usr/bin/script, /usr/bin/script-2, /usr/bin/script-2.7 for Python 2, and /usr/bin/script-3, /usr/bin/script-3.5 for Python 3. You can do that like this: %py3_install mv %{buildroot}/%{_bindir}/%{pypi_name} %{buildroot}/%{_bindir}/%{pypi_name}-3 ln -s %{buildroot}/%{_bindir}/%{pypi_name}-3 %{buildroot}/%{_bindir}/%{pypi_name}-%{python3_version} %py2_install ln -s %{buildroot}/%{_bindir}/%{pypi_name} %{buildroot}/%{_bindir}/%{pypi_name}-%2 ln -s %{buildroot}/%{_bindir}/%{pypi_name} %{buildroot}/%{_bindir}/%{pypi_name}-%{python2_version} Thanks! Have updated SPEC - as of now kept /usr/bin/script and /usr/bin/script-3 Working around error: Symlink points to BuildRoot Koji Scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=13225981 python-importanize-0.4.1-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d662304333 Right, sorry! The symlink targets don't need a directory. ln -s %{pypi_name}-3 %{buildroot}/%{_bindir}/%{pypi_name}-%{python3_version} python-importanize-0.4.1-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d662304333 Thanks! Have updated SPEC and Package. SPEC URL: https://bitbucket.org/sundeep_co_in/python-pkgs/downloads/python-importanize.spec SRPM URL: https://bitbucket.org/sundeep_co_in/python-pkgs/downloads/python-importanize-0.4.1-4.fc23.src.rpm Koji Scratch Build: http://koji.fedoraproject.org/koji/taskinfo?taskID=13342442 python-importanize-0.4.1-5.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-25398488a9 python-importanize-0.4.1-5.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-25398488a9 python-importanize-0.4.1-5.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. |