mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
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
17 lines
479 B
Bash
Executable File
17 lines
479 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
|
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 "$VERSION"
|
|
setup_wheel_python
|
|
pip_install numpy
|
|
setup_pip_pytorch_version
|
|
python setup.py clean
|
|
IS_WHEEL=1 python setup.py bdist_wheel
|