python macros

Elan Ruusamäe glen at pld-linux.org
Mon Nov 10 03:11:54 CET 2008


1. what's the point of such macros?
$ rpm -E '%pyrequires_eq  python-libs'
Requires:       python-libs

$ rpm -E '%pyrequires_eq  python-modules'
Requires:       python-modules

2. python 2.6 .py[co] aren't recognixzed by file(1)
and therefore no python autodeps are produced?

$ file *
bootloaderInfo.pyc:  data
bootloaderInfo.pyo:  data

at least if i take python-booty from th-test, it has no python versioned deps 
whatsover.

# rpm -q python-booty --requires
python-libs
python-rhpl >= 0.176-1.1
rpmlib(PayloadIsLzma) <= 4.4.6-1

spec itself:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/python-booty.spec?rev=1.17

or it's not parsed as the python files are not inside python dirs?
$ rpm -qpl ../RPMS/python-booty-0.93-5.i686.rpm
/usr/lib/booty
/usr/lib/booty/bootloaderInfo.pyc
/usr/lib/booty/bootloaderInfo.pyo
/usr/lib/booty/booty.pyc
/usr/lib/booty/booty.pyo
/usr/lib/booty/checkbootloader.pyc
/usr/lib/booty/checkbootloader.pyo
/usr/lib/booty/grubupdatetest.pyc
/usr/lib/booty/grubupdatetest.pyo
/usr/lib/booty/lilo.pyc
/usr/lib/booty/lilo.pyo

-- 
glen


More information about the pld-devel-en mailing list