Distro layer package 'python-keyring' has a dependency on flock layer
package 'tsconfig'. This is s violation of the layering policy,
preventing successful layerd builds.
Get the SW_VERSION via parsing the /etc/build.info file instead of the
tsconfig.tsconfig python module at run time. We do this so that
python-keyring no longer has a runtime dependency on tsconfig.
Test Plan:
Pass: build python-keyring
Pass: put the codes in a test.py. get the SW_VERSION variable by run the
test.py in an environment in which build-info is installed.
Pass: trigger exception if removing /etc/build.info, or no SW_VERSION
in the file.
Closes-Bug: https://bugs.launchpad.net/starlingx/+bug/1968611
Signed-off-by: Yue Tao <yue.tao@windriver.com>
Change-Id: I7f0c4eaae7aacf5bcbef082817dc99a62600a162