Skip to content

Commit

Permalink
simplify GIT_TAG in conda package
Browse files Browse the repository at this point in the history
fairinternal has no useful tag to count from.
Just store the commit hash itself.

ghstack-source-id: 5e87712b5cff596a5fdb86e4310741bca8e9e9a4
Pull Request resolved: facebookresearch#639
  • Loading branch information
bottler committed Jan 12, 2023
1 parent 58b4df9 commit f7f2fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/build_conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _set_env_for_build(self):

os.environ["TORCH_CUDA_ARCH_LIST"] = "5.0+PTX 6.0 6.1 7.0 7.5 8.0 8.6"
os.environ["BUILD_VERSION"] = self._get_build_version()
tag = subprocess.check_output(["git", "describe", "--tags"], text=True).strip()
tag = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"], text=True).strip()
os.environ["GIT_TAG"] = tag
os.environ["PYTORCH_VERSION"] = self.pytorch_version
os.environ["CU_VERSION"] = self.cuda_version
Expand Down

0 comments on commit f7f2fcb

Please sign in to comment.