After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 460311 - python-bindings should compile the .py modules
python-bindings should compile the .py modules
Status: RESOLVED OBSOLETE
Product: libxslt
Classification: Platform
Component: python
1.1.20
Other Mac OS
: Normal enhancement
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-25 17:45 UTC by Daniel Macks
Modified: 2021-07-05 10:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Macks 2007-07-25 17:45:34 UTC
+++ This bug was initially created as a clone of Bug #460113 +++

When compiling the python bindings for libxslt-1.1.20, './configure && make install' installs the .py python modules, but not the .pyc compiled python modules. As a result, when root installs it, users can never get the benefit of compiled modules (since they can't write to the system python libdir). And if root does use them (python can do just-in-time compiling and then automatically saves the compiled module), then those compiled .pyc are never removed by normal package-removal methods (since they weren't installed as part of the normal package-installation methods). The usual approach for python-module build systems is for the "install" target to compile the .py after installing them. Because libxml2 uses a hand-written install target for the .py, the automatic rules for doing that don't happen.

One way to implement this is by importing the py-compile script from a recent
automake. Alternately, could write a python one-liner that does the same core
function-calls. If you have a preference for which way to do it, I can put
together some patches.
Comment 1 GNOME Infrastructure Team 2021-07-05 10:59:30 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/libxslt/-/issues/

Thank you for your understanding and your help.