|
Bugzilla – Full Text Bug Listing |
| Summary: | move pywxrc back to python-wxGTK sub-package | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE Linux 10.1 | Reporter: | Andreas Hanke <andreas.hanke> |
| Component: | GNOME | Assignee: | E-mail List <gnome-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Minor | ||
| Priority: | P5 - None | ||
| Version: | Beta 4 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Andreas Hanke
2006-02-21 19:30:33 UTC
Can pywxrc work correctly without wxGTK-devel? If yes, I agree wiith your patch, if not, I would prefer adding "Requires: python-wxGTK" to wxGTK-devel instead of moving pywxrc. (This is the way many packages are splitted already - additional package required for development is not a much pain.) > Can pywxrc work correctly without wxGTK-devel? Yes, pywxrc usage doesn't require the C++ headers to be present. Example: http://wiki.wxpython.org/index.cgi/UsingXmlResources - save section 4 of this page as "calc.py(w)" - save section 5 of this page as "calc.xrc" - use pywxrc to extract strings for gettext: $ pywxrc -g calc.xrc _("Simple calculator") _("First arg:") _("Second arg:") _("Result:") _("Operations") _("&Add") _("Add second arg to the first arg.") _("&Substract") _("Substract second arg from the first arg.") _("&Multiply") _("Multiply first arg by second arg") _("&Divide") _("Divide first arg by second arg.") It works correctly without wxGTK-devel installed. The same can also be used to generate Python and C++ sources: $ pywxrc -p calc.xrc (produces "resource.py") $ pywxrc -c calc.xrc (produces "resource.cpp") The only potential problem is that "resource.cpp" #include's headers from wxGTK-devel, but I doubt that this justifies a dependency on wxGTK-devel because wxGTK-devel is not needed to create "resource.cpp", it's only needed to compile it, and you can do other things (with the "-g" and "-p" switches) that are completely unrelated to the C++ headers. Thanks for explanation. pywxrc moved to python-wxGTK. |