pytorch/scripts
Eli Uriegas 07ae4e9309 scripts: Add script to prep wheels for pypi (#53056)
Summary:
Adds a script so that we can take wheels directly from
download.pytorch.org and publish them to pypi

This is currently mainly used to prep windows binaries for publication to PyPI

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

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

Reviewed By: H-Huang

Differential Revision: D26738642

Pulled By: seemethere

fbshipit-source-id: 96777ed6c3f3454bddb4bc13121f727074312816
2021-03-01 16:46:44 -08: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] Fix graph sequence output from loop node (#51305) (#51521) 2021-02-04 12:44:17 -08:00
release scripts: Add script to prep wheels for pypi (#53056) 2021-03-01 16:46:44 -08: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
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
build_tegra_x1.sh
build_tizen.sh
build_windows.bat
diagnose_protobuf.py Remove py2 compatible future imports (#44735) 2020-09-16 12:55:57 -07: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
remove_apache_header.sh
temp.sh
xcode_build.rb [iOS][CI] Upgrade xcode version to 12.0 (#45677) 2020-10-01 16:53:18 -07: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.