Skip to content

Commit

Permalink
Remove python3.5 typing dependency. (pytorch#3288)
Browse files Browse the repository at this point in the history
Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
  • Loading branch information
datumbox and fmassa authored Jan 25, 2021
1 parent 7dfd8dc commit 05c5425
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions packaging/conda/build_vision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,6 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
rm -rf "$output_folder"
mkdir "$output_folder"

if [[ "$py_ver" == 3.5 ]]; then
export CONDA_TYPING_CONSTRAINT="- typing"
else
export CONDA_TYPING_CONSTRAINT=""
fi

export VSTOOLCHAIN_PACKAGE=vs2017

# We need to build the compiler activation scripts first on Windows
Expand Down
9 changes: 0 additions & 9 deletions packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,6 @@ setup_macos() {
fi
}

# set variable to determine whether the typing library needs to be built in
setup_typing() {
if [[ "$PYTHON_VERSION" == 3.5 ]]; then
export CONDA_TYPING_CONSTRAINT="- typing"
else
export CONDA_TYPING_CONSTRAINT=""
fi
}

# Top-level entry point for things every package will need to do
#
Expand All @@ -159,7 +151,6 @@ setup_env() {
setup_cuda
setup_build_version "$1"
setup_macos
setup_typing
}

# Function to retry functions that sometimes timeout or have flaky failures
Expand Down
1 change: 0 additions & 1 deletion packaging/torchvision/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ test:
- scipy
- av =8.0.1
- ca-certificates
{{ environ.get('CONDA_TYPING_CONSTRAINT') }}


about:
Expand Down

0 comments on commit 05c5425

Please sign in to comment.