Version number in one place in the code.

Summary:
This isn't the whole task, but it gets the version number into far fewer places.

The doc / website are separate.

Reviewed By: nikhilaravi

Differential Revision: D20426113

fbshipit-source-id: 5810d1eca58b443fcd5f46991dc2f0f26adedbd8
This commit is contained in:
Jeremy Reizenstein
2020-03-13 04:33:36 -07:00
committed by Facebook GitHub Bot
parent 2361845548
commit 4d3c886677
6 changed files with 12 additions and 22 deletions

View File

@@ -5,8 +5,10 @@ set -ex
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "$script_dir/pkg_helpers.bash"
VERSION=$(python -c "exec(open('${script_dir}/../pytorch3d/__init__.py').read()); print(__version__)")
export BUILD_TYPE=conda
setup_env 0.1.1
setup_env "$VERSION"
export SOURCE_ROOT_DIR="$PWD"
setup_conda_pytorch_constraint
setup_conda_cudatoolkit_constraint

View File

@@ -5,8 +5,10 @@ set -ex
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "$script_dir/pkg_helpers.bash"
VERSION=$(python -c "exec(open('${script_dir}/../pytorch3d/__init__.py').read()); print(__version__)")
export BUILD_TYPE=wheel
setup_env 0.1.1
setup_env "$VERSION"
setup_wheel_python
pip_install numpy
setup_pip_pytorch_version