build: Add release_version.h
to control the TF wheel filename and maintain reproducible wheel content and filename results.
#488
+6
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
build: Add
release_version.h
to control the TF wheel filename and maintain reproducible wheel content and filename results.It enables ability to pass defines values to
//tensorflow/core/public:release_version
.Instead of having TF version in three places (
setup.py
,version.h
andtensorflow.bzl
), it should be located in one place only. Declaration of TF version in a newtf_version.bzl
file will allow passing this value to build rules wrappingsetup.py
andrelease_version.h
.Dependency on
//tensorflow/core/public:release_version
should be added ifTF_MAJOR_VERSION, TF_MINOR_VERSION, TF_PATCH_VERSION, TF_VERSION_SUFFIX
values are used in the code.Dependency on
//tensorflow/core/public:version
should be added if graphDef compatibility versions or checkpoint compatibility versions are used in the code.The next step would be to change cc_library release_version in the following way:
The version chunks will be created from the value in
tf_version.bzl
. The version suffix will be created by a new repository rule, and it will be controlled by environment variables.