build_wheel.sh 479 Bytes
Newer Older
facebook-github-bot's avatar
facebook-github-bot committed
1
2
3
4
5
6
7
#!/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"

8
9
VERSION=$(python -c "exec(open('${script_dir}/../pytorch3d/__init__.py').read()); print(__version__)")

facebook-github-bot's avatar
facebook-github-bot committed
10
export BUILD_TYPE=wheel
11
setup_env "$VERSION"
facebook-github-bot's avatar
facebook-github-bot committed
12
13
14
15
16
setup_wheel_python
pip_install numpy
setup_pip_pytorch_version
python setup.py clean
IS_WHEEL=1 python setup.py bdist_wheel