Skip to content

Delete stale packaging scripts #5433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 3 additions & 87 deletions packaging/README.md
Original file line number Diff line number Diff line change
@@ -1,90 +1,6 @@
# Building torchvision packages for release

## Anaconda packages
TorchVision release packages are built by using `build_wheel.sh` and `build_conda.sh` for all permutations of
supported operating systems, compute platforms and python versions.

### Linux

```bash
nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/conda-cuda bash
pushd remote/conda

./build_vision.sh 9.0
./build_vision.sh 10.0
./build_vision.sh cpu

# copy packages over to /remote
# exit docker
# anaconda upload -u pytorch torchvision*.bz2
```

### OSX

```bash
# create a fresh anaconda environment / install and activate it
conda install -y conda-build anaconda-client
./build_vision.sh cpu

# copy packages over to /remote
# exit docker
# anaconda upload -u pytorch torchvision*.bz2
```

### Windows

```bash
# Open `Git Bash` and change dir to `conda`
./build_vision.sh 9.0
./build_vision.sh 10.0
./build_vision.sh cpu

# copy packages to a output directory
# anaconda upload -u pytorch torchvision*.bz2
```

## Wheels

### Linux

pushd wheel

```bash
nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda90:latest bash
cd remote
./linux_manywheel.sh cu90

rm -rf /usr/local/cuda*
./linux_manywheel.sh cpu
```

```bash
nvidia-docker run -it --ipc=host --rm -v $(pwd):/remote soumith/manylinux-cuda100:latest bash
cd remote
./linux_manywheel.sh cu100
```

wheels are in the folders `cpu`, `cu90`, `cu100`.

You can upload the `cu90` wheels to twine with `twine upload *.whl`.
Which wheels we upload depends on which wheels PyTorch uploads as default, and right now, it's `cu90`.

### OSX

```bash
pushd wheel
./osx_wheel.sh
```

### Windows

```cmd
set PYTORCH_REPO=pytorch

pushd windows
call build_vision.bat 90 0.3.0 1
call build_vision.bat 100 0.3.0 1
call build_vision.bat cpu 0.3.0 1
```

wheels are in the current folder.

You can upload them to twine with `twine upload *.whl`
OS/Python/Compute matrix is defined in https://github.com/pytorch/vision/blob/main/.circleci/regenerate.py
59 changes: 0 additions & 59 deletions packaging/wheel/linux_manywheel.sh

This file was deleted.

50 changes: 0 additions & 50 deletions packaging/wheel/osx_wheel.sh

This file was deleted.