Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282992 - Python Developers Guide example not using python_get_sitedir
Summary: Python Developers Guide example not using python_get_sitedir
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Python Gentoo Team
URL: http://www.gentoo.org/proj/en/Python/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-28 01:53 UTC by Sebastian Pipping
Modified: 2009-10-03 17:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2009-08-28 01:53:11 UTC
Code Listing 2.1 ("Optimize/cleanup idiom") should be using

# python_mod_optimize $(python_get_sitedir)/YOURPACKAGE

instead of

# python_version
# python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/YOURPACKAGE

If the purpose of the example is to demonstrate usage of the python_version funtion, a second or-better version of the example could be added.

Reproducible: Always