Packaging/SUSE Macros/Python Macros

From openSUSE

Contents

Macros for Python packaging

%py_incdir

This macro substitutes for the path where Python header files are installed, such as /usr/include/python%py_ver.

%py_libdir

This macro substitutes for the path where Python modules are installed, such as /usr/lib/python%py_ver

%py_requires

This macro substitutes for PreReq and BuildRequires tags. This defines dependency on the same python major version as it was used during building

%py_ver

This macro substitutes for the Python major version, such as 2.5.