Fix BUILD_VERSION for conda

Summary: D20426113 made a mistake, in that it added a dev tag to all conda builds. This makes the simplest fix, which is to never have the dev tag.

Reviewed By: nikhilaravi

Differential Revision: D20468541

fbshipit-source-id: adc71b58d59356834d33f65a75cf8ba84359bc74
This commit is contained in:
Jeremy Reizenstein 2020-03-16 11:40:28 -07:00 committed by Facebook GitHub Bot
parent fa81953380
commit f580ce1385

View File

@ -7,6 +7,9 @@ script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
VERSION=$(python -c "exec(open('${script_dir}/../pytorch3d/__init__.py').read()); print(__version__)")
# Prevent dev tag in the version string.
export BUILD_VERSION=$VERSION
export BUILD_TYPE=conda
setup_env "$VERSION"
export SOURCE_ROOT_DIR="$PWD"