File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh &
1212. ~ /minconda_wheel_env_tmp/bin/activate
1313
1414
15- export TORCHVISION_BUILD_VERSION=" 0.3.0 "
15+ export TORCHVISION_BUILD_VERSION=" 0.4.0.dev $( date " +%Y%m%d " ) "
1616export TORCHVISION_BUILD_NUMBER=" 1"
1717export OUT_DIR=~ /torchvision_wheels
1818
1919export MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++
2020
2121pushd /tmp
2222rm -rf vision
23- git clone https://github.com/pytorch/vision -b v ${TORCHVISION_BUILD_VERSION}
23+ git clone https://github.com/pytorch/vision
2424pushd vision
2525
2626desired_pythons=( " 2.7" " 3.5" " 3.6" " 3.7" )
3232 conda create -yn $env_name python=" $desired_python "
3333 conda activate $env_name
3434
35+ pip uninstall -y torch || true
36+ pip uninstall -y torch_nightly || true
37+
38+ export TORCHVISION_PYTORCH_DEPENDENCY_NAME=torch_nightly
39+ pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
40+ export TORCHVISION_PYTORCH_DEPENDENCY_VERSION=" $( pip show torch_nightly | grep ^Version: | sed ' s/Version: *//' ) "
41+ echo " Building against ${TORCHAUDIO_PYTORCH_DEPENDENCY_VERSION} "
42+
3543 # install torchvision dependencies
36- pip install torch ninja scipy pytest
44+ pip install ninja scipy pytest
3745
3846 python setup.py clean
3947 python setup.py bdist_wheel
You can’t perform that action at this time.
0 commit comments