xbps-src: introduce python_version

This commit is contained in:
Alessio Sergi 2016-11-17 17:37:37 +01:00
parent a28fd5497d
commit 29c37543cf
4 changed files with 13 additions and 1 deletions

View file

@ -1107,6 +1107,11 @@ By default it's set to `2.7` for `python 2.x` packages.
> NOTE: you need to define it *only* for non-Python modules.
- `python_version`: this variable expects the supported Python major version.
By default it's set to `2`. This variable is needed for multi-language
applications (e.g., the application is written in C while the command is
written in Python) or just single Python file ones that live in `/usr/bin`.
Also, a set of useful variables are defined to use in the templates:
| Variable | Value |