93 |
if [[ ${ARCH} = x86_64 ]] |
if [[ ${ARCH} = x86_64 ]] |
94 |
then |
then |
95 |
# move config header |
# move config header |
96 |
all-abis mv -v ${BINDIR}/usr/include/python${PVER%.*}/pyconfig{,'${abi/m/}'}.h |
all-abis mv -v ${BINDIR}/usr/include/python${PVER%.*}/pyconfig{,'${abi}'}.h |
97 |
|
|
98 |
# install a stub header |
# install a stub header |
99 |
cat > ${BINDIR}/usr/include/python${PVER%.*}/pyconfig.h << "EOF" |
cat > ${BINDIR}/usr/include/python${PVER%.*}/pyconfig.h << "EOF" |
106 |
defined(__arch64__) || \ |
defined(__arch64__) || \ |
107 |
defined(__powerpc64__) || \ |
defined(__powerpc64__) || \ |
108 |
defined (__s390x__) |
defined (__s390x__) |
109 |
# include "pyconfig-64.h" |
# include "pyconfig-m64.h" |
110 |
#else |
#else |
111 |
# include "pyconfig-32.h" |
# include "pyconfig-m32.h" |
112 |
#endif |
#endif |
113 |
|
|
114 |
#endif /* __STUB__PYCONFIG_H__ */ |
#endif /* __STUB__PYCONFIG_H__ */ |
115 |
EOF |
EOF |
116 |
# install the multiarch-wrapper |
# install the multiarch-wrapper |
117 |
all-abis mv -v ${BINDIR}/usr/bin/python${PYVER%.*}{,-'${abi/m/}'} |
all-abis mv -v ${BINDIR}/usr/bin/python${PYVER%.*}{,-'${abi}'} |
118 |
mlink multiarch-wrapper /usr/bin/python${PYVER%.*} |
mlink multiarch-wrapper /usr/bin/python${PYVER%.*} |
119 |
fi |
fi |
120 |
|
|