xcb-proto: get python version in termux_step_pre_configure
Instead of termux_step_configure. Fixes https://github.com/termux/termux-packages/issues/5720
This commit is contained in:
parent
b6c702b46e
commit
5f7c9fa701
|
@ -11,7 +11,7 @@ TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
||||||
TERMUX_PKG_CONFLICTS="xcbproto"
|
TERMUX_PKG_CONFLICTS="xcbproto"
|
||||||
TERMUX_PKG_REPLACES="xcbproto"
|
TERMUX_PKG_REPLACES="xcbproto"
|
||||||
|
|
||||||
termux_step_configure() {
|
termux_step_pre_configure() {
|
||||||
python_version=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
|
python_version=$(. $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
|
||||||
TERMUX_PKG_RM_AFTER_INSTALL="lib/python${python_version}/site-packages/xcbgen/__pycache__"
|
TERMUX_PKG_RM_AFTER_INSTALL="lib/python${python_version}/site-packages/xcbgen/__pycache__"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue