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 &
12
12
. ~ /minconda_wheel_env_tmp/bin/activate
13
13
14
14
15
- export TORCHVISION_BUILD_VERSION=" 0.3.0 "
15
+ export TORCHVISION_BUILD_VERSION=" 0.4.0.dev $( date " +%Y%m%d " ) "
16
16
export TORCHVISION_BUILD_NUMBER=" 1"
17
17
export OUT_DIR=~ /torchvision_wheels
18
18
19
19
export MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++
20
20
21
21
pushd /tmp
22
22
rm -rf vision
23
- git clone https://github.com/pytorch/vision -b v ${TORCHVISION_BUILD_VERSION}
23
+ git clone https://github.com/pytorch/vision
24
24
pushd vision
25
25
26
26
desired_pythons=( " 2.7" " 3.5" " 3.6" " 3.7" )
32
32
conda create -yn $env_name python=" $desired_python "
33
33
conda activate $env_name
34
34
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
+
35
43
# install torchvision dependencies
36
- pip install torch ninja scipy pytest
44
+ pip install ninja scipy pytest
37
45
38
46
python setup.py clean
39
47
python setup.py bdist_wheel
You can’t perform that action at this time.
0 commit comments