Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145151 - dev-python/docutils fails to generate bytecode files (all versions)
Summary: dev-python/docutils fails to generate bytecode files (all versions)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-26 01:20 UTC by James Rowe
Modified: 2006-08-26 02:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
docutils-0.3.7-distutils_fix.patch (docutils-0.3.7-distutils_fix.patch,438 bytes, patch)
2006-08-26 01:20 UTC, James Rowe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Rowe 2006-08-26 01:20:03 UTC
User-Agent:       Opera/9.01 (X11; Linux i686; U; en)
Build Identifier: 


  All the docutils ebuilds in the tree override pkg_postinst() without also
running the distutils.eclass provided one.  This means that the bytecode
files aren't generated post installation.

  Without the post install optimisation distutils is even slower than
normal:

0 jay@bernoulli ~/Desktop/docutils_test $ time for i in {0..10}; do rst2html.py 
manual.txt >/dev/null; done

  real	3m5.785s
  user	2m50.650s
  sys 	0m3.200s
  CPU 	93.57

versus the following with the attached applied:

0 jay@bernoulli ~/Desktop/docutils_test $ time for i in {0..10}; do rst2html.py 
manual.txt >/dev/null; done

  real	2m32.883s
  user	2m21.900s
  sys 	0m2.220s
  CPU 	94.27

  The attached patch simply fixes the pkg_post{inst,rm} functions to call
the distutils.eclass provided functions.  The patch applies to all the
ebuilds cleanly, but it is generated against 0.3.7 because I'm using it ;).

Thanks for your time


James



Reproducible: Always
Comment 1 James Rowe 2006-08-26 01:20:54 UTC
Created attachment 95109 [details, diff]
docutils-0.3.7-distutils_fix.patch
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2006-08-26 02:28:47 UTC
fixed in portage, thanks for your report.