'how to change tensorflow build version?

I am trying to build tensorflow from source following this link. Everything works good and I successfully build it based on master branch.

After I get the .whl package, I installed it and checked the version number. I get the following output:

Python 3.9.5 (default, Jun 18 2021, 13:37:06)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'2.9.0'
>>>

I get the version number as '2.9.0'. it makes sense as I build based on master branch and the current release is 2.8.0. However, I wish to customize the version number, for example, as 2.9.0--xxx so that I know what features I added into this build. I thought there should be a setup file or something I can change but I cannot find it. Any ideas? Thx!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source