Skip to content

Commit 8276ec5

Browse files
committed
[dist] Save p4a version into dist_info.json
So we can later check if the dist was created with an old version of p4a
1 parent 1e7d0d4 commit 8276ec5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pythonforandroid/distribution.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import glob
33
import json
44

5+
from pythonforandroid import __version__
56
from pythonforandroid.logger import (info, info_notify, warning, Err_Style, Err_Fore)
67
from pythonforandroid.util import current_directory, BuildInterruptingException
78
from shutil import rmtree
@@ -23,6 +24,7 @@ class Distribution(object):
2324
dist_dir = None # Where the dist dir ultimately is. Should not be None.
2425
ndk_api = None
2526
android_api = None
27+
p4a_version = None
2628

2729
archs = []
2830
'''The arch targets that the dist is built for.'''
@@ -237,7 +239,8 @@ def save_info(self, dirn):
237239
'use_setup_py': self.ctx.use_setup_py,
238240
'recipes': self.ctx.recipe_build_order + self.ctx.python_modules,
239241
'hostpython': self.ctx.hostpython,
240-
'python_version': self.ctx.python_recipe.major_minor_version_string},
242+
'python_version': self.ctx.python_recipe.major_minor_version_string,
243+
'p4a_version': __version__},
241244
fileh)
242245

243246

0 commit comments

Comments
 (0)