[Bug 894588] New: python-pyside fails to install egg-info
https://bugzilla.novell.com/show_bug.cgi?id=894588 https://bugzilla.novell.com/show_bug.cgi?id=894588#c0 Summary: python-pyside fails to install egg-info Classification: openSUSE Product: openSUSE Factory Version: 201408* Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: rolf@rotkraut.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 The package python-pyside provides the Python package PySide. But it does not install the egg-info for this package. As a consequence, all dependent Python packages that require PySide using pkg_resources will fail to find it. Reproducible: Always Steps to Reproduce: 1. install python-pyside 2. run the following Python two-liner that tries to find PySide using pkg_resources: | from pkg_resources import require | require("PySide>=1.1.0") Actual Results: An exception is raised: | Traceback (most recent call last): | File "<stdin>", line 1, in <module> | File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require | needed = self.resolve(parse_requirements(requirements)) | File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve | raise DistributionNotFound(req) | pkg_resources.DistributionNotFound: PySide>=1.1.0 Expected Results: No exception. The test program should have found PySide. require should have returned (a list with) a pkg_resources.Distribution object corresponding to the installed PySide package. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=894588 https://bugzilla.novell.com/show_bug.cgi?id=894588#c1 Rolf Krahl <rolf@rotkraut.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rolf@rotkraut.de --- Comment #1 from Rolf Krahl <rolf@rotkraut.de> 2014-09-02 13:08:03 UTC --- I did a little digging into the problem, so here is what I found so far. Unfortunately things are a little complicated upstream. Normally, a Python source distribution provides a setup.py script. You run "python setup.py install" and the script should build and install everything where it belongs. This also generates and installs the egg-info for the package. In this case, the PySide source distribution[1] is composed of subpackages, pyside, pyside-tools, and shiboken. It contains not only the Python package, but also C++ libraries and header files, command line tools and more. The subpackages are also available separately in own source distributions. The content of these separate source distributions is the same as the content of the sub directories in the top level distribution. Building is controlled using cmake. The top level source provides a setup.py script, but the separate source distributions of the subpackages do not contain one. The openSUSE packages python-pyside and python-pyside-shiboken in Factory and 13.2 (and python-pyside-tools in KDE:Qt) are based on the respective subpackage source distribution. Since there is no setup.py, they call cmake and make directly. This installs everything nicely in the right place, but doesn't bother creating the egg-info. If one takes the top level source distribution instead and runs the setup.py, this does create and install the egg-info. But it screws up most of the rest: libraries and header files are placed in the wrong location (in the Python package dir in %{python_sitearch}), other stuff is not installed at all. So the result of this approach is basically unusable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=894588 https://bugzilla.novell.com/show_bug.cgi?id=894588#c Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bwiedemann@suse.com, | |fisiu@opensuse.org, | |p.drouand@gmail.com AssignedTo|bnc-team-screening@forge.pr |toddrme2178@gmail.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=894588 https://bugzilla.novell.com/show_bug.cgi?id=894588#c2 --- Comment #2 from Rolf Krahl <rolf@rotkraut.de> 2014-09-08 07:27:48 UTC --- I now have a version of the package in my OBS home repo that fixes the problem, see [1]. It is based on the PySide top level source distribution and builds all three subpackages, python-pyside, python-pyside-shiboken, and python-pyside-tools from one source package rather then each of them individually from the respective subpackage source distribution. The toplevel setup.py is used only to build the egg-info. All the rest is built and installed by calling cmake and make directly in the respective subpackage directory. This is a rather radical change compared to the packages from KDE:Qt that are in Factory. So, I'm not sure whether you like it. Please tell me if you want me to submit my version. [1] https://build.opensuse.org/package/show/home:Rotkraut/python-pyside -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=894588 http://bugzilla.novell.com/show_bug.cgi?id=894588#c4 Todd R <toddrme2178@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Todd R <toddrme2178@gmail.com> --- The current version has egg-info. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com