pytorch/scripts
Eli Uriegas 67f765328b scripts: Change promote pypi to be more flexible (#53774)
Summary:
Promotion to PyPI should be more flexible to allow any package to be
promoted to PyPI.

After we re-added a version suffix to cuda 10.2 it means that this
script needs to have the flexibility to designate which platform and
which version suffix will actually be uploaded to PyPI

Should coincide with https://github.com/pytorch/builder/pull/678

Signed-off-by: Eli Uriegas <eliuriegas@fb.com>

Pull Request resolved: https://github.com/pytorch/pytorch/pull/53774

Reviewed By: jbschlosser

Differential Revision: D27052347

Pulled By: seemethere

fbshipit-source-id: 71129cc5afbd7de448c970ef721bc979c3420586
2021-03-15 13:30:21 -07:00
..
appveyor
fbcode-dev-setup Fix typos (#30606) 2019-12-02 20:17:42 -08:00
model_zoo Drop unused imports from scripts (#49956) 2021-01-04 16:08:28 -08:00
onnx [ONNX] Support inplace operations on inplace indexing (#52063) (#53306) 2021-03-12 02:49:11 -08:00
release scripts: Change promote pypi to be more flexible (#53774) 2021-03-15 13:30:21 -07:00
release_notes Add script to compare namespace content for release cleanup (#51685) 2021-02-05 07:54:00 -08:00
add_apache_header.sh
apache_header.txt
apache_python.txt
build_android.sh [PyTorch] update CMake to build libtorch lite (#51419) 2021-02-21 01:43:54 -08:00
build_host_protoc.sh
build_ios.sh [PyTorch] update CMake to build libtorch lite (#51419) 2021-02-21 01:43:54 -08:00
build_local.sh Only set CCACHE_WRAPPER_PATH in the build scripts if it is not already passed in. 2019-11-01 18:39:12 -07:00
build_mobile.sh [pytorch] deprecate static dispatch (#43564) 2020-08-27 14:52:48 -07:00
build_pytorch_android.sh fix scripts (#44464) 2020-09-10 08:13:48 -07:00
build_raspbian.sh Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
build_tegra_x1.sh Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
build_tizen.sh
build_windows.bat Turn off warnings on Windows CI. (#24331) 2019-08-30 07:11:07 -07:00
diagnose_protobuf.py Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
get_python_cmake_flags.py Remove __future__ imports for legacy Python2 supports (#45033) 2020-09-23 17:57:02 -07:00
proto.ps1
read_conda_versions.sh
README.md Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
remove_apache_header.sh
temp.sh
xcode_build.rb Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00

This directory contains the useful tools.

build_android.sh

This script is to build PyTorch/Caffe2 library for Android. Take the following steps to start the build:

  • set ANDROID_NDK to the location of ndk
export ANDROID_NDK=YOUR_NDK_PATH
  • run build_android.sh
#in your PyTorch root directory
bash scripts/build_android.sh

If succeeded, the libraries and headers would be generated to build_android/install directory. You can then copy these files from build_android/install to your Android project for further usage.

You can also override the cmake flags via command line, e.g., following command will also compile the executable binary files:

bash scripts/build_android.sh -DBUILD_BINARY=ON

build_ios.sh

This script is to build PyTorch/Caffe2 library for iOS, and can only be performed on macOS. Take the following steps to start the build:

  • Install Xcode from App Store, and configure "Command Line Tools" properly on Xcode.
  • Install the dependencies:
brew install cmake automake libtool
  • run build_ios.sh
#in your PyTorch root directory
bash scripts/build_ios.sh

If succeeded, the libraries and headers would be generated to build_ios/install directory. You can then copy these files to your Xcode project for further usage.