Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
1afef1dc
Unverified
Commit
1afef1dc
authored
Aug 06, 2019
by
Edward Z. Yang
Committed by
GitHub
Aug 06, 2019
Browse files
OS X wheel updates for nightlies (#1205)
Signed-off-by:
Edward Z. Yang
<
ezyang@fb.com
>
parent
6c7189fc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
packaging/wheel/osx_wheel.sh
packaging/wheel/osx_wheel.sh
+11
-3
No files found.
packaging/wheel/osx_wheel.sh
View file @
1afef1dc
...
@@ -12,7 +12,7 @@ wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh &
...
@@ -12,7 +12,7 @@ wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh &
.
~/minconda_wheel_env_tmp/bin/activate
.
~/minconda_wheel_env_tmp/bin/activate
export
TORCHVISION_BUILD_VERSION
=
"0.
3
.0"
export
TORCHVISION_BUILD_VERSION
=
"0.
4
.0
.dev
$(
date
"+%Y%m%d"
)
"
export
TORCHVISION_BUILD_NUMBER
=
"1"
export
TORCHVISION_BUILD_NUMBER
=
"1"
export
OUT_DIR
=
~/torchvision_wheels
export
OUT_DIR
=
~/torchvision_wheels
...
@@ -20,7 +20,7 @@ export MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++
...
@@ -20,7 +20,7 @@ export MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++
pushd
/tmp
pushd
/tmp
rm
-rf
vision
rm
-rf
vision
git clone https://github.com/pytorch/vision
-b
v
${
TORCHVISION_BUILD_VERSION
}
git clone https://github.com/pytorch/vision
pushd
vision
pushd
vision
desired_pythons
=(
"2.7"
"3.5"
"3.6"
"3.7"
)
desired_pythons
=(
"2.7"
"3.5"
"3.6"
"3.7"
)
...
@@ -32,8 +32,16 @@ do
...
@@ -32,8 +32,16 @@ do
conda create
-yn
$env_name
python
=
"
$desired_python
"
conda create
-yn
$env_name
python
=
"
$desired_python
"
conda activate
$env_name
conda activate
$env_name
pip uninstall
-y
torch
||
true
pip uninstall
-y
torch_nightly
||
true
export
TORCHVISION_PYTORCH_DEPENDENCY_NAME
=
torch_nightly
pip
install
torch_nightly
-f
https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
export
TORCHVISION_PYTORCH_DEPENDENCY_VERSION
=
"
$(
pip show torch_nightly |
grep
^Version: |
sed
's/Version: *//'
)
"
echo
"Building against
${
TORCHAUDIO_PYTORCH_DEPENDENCY_VERSION
}
"
# install torchvision dependencies
# install torchvision dependencies
pip
install
torch
ninja scipy pytest
pip
install
ninja scipy pytest
python setup.py clean
python setup.py clean
python setup.py bdist_wheel
python setup.py bdist_wheel
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment