xbps-src: added "pycompile_version" to specify python version used in the pycompile trigger.

This commit is contained in:
Juan RP 2014-06-18 11:31:32 +02:00
parent 45d79b96ea
commit ac91238431
2 changed files with 2 additions and 1 deletions

View file

@ -24,7 +24,7 @@ unset -v font_dirs
unset -v xml_entries sgml_entries xml_catalogs sgml_catalogs
# xbps-triggers: pycompile
unset -v pycompile_dirs pycompile_module
unset -v pycompile_version pycompile_dirs pycompile_module
# xbps-triggers: dkms
unset -v dkms_modules

View file

@ -239,6 +239,7 @@ _EOF
# Handle python bytecode archives with pycompile trigger.
#
if [ -n "${pycompile_dirs}" -o -n "${pycompile_module}" ]; then
echo "export pycompile_version=\"${pycompile_version:=2.7}\"" >>$tmpf
if [ -n "${pycompile_dirs}" ]; then
echo "export pycompile_dirs=\"${pycompile_dirs}\"" >>$tmpf
fi