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
Torchaudio
Commits
ba00419a
Unverified
Commit
ba00419a
authored
Oct 16, 2020
by
moto
Committed by
GitHub
Oct 16, 2020
Browse files
Update package script to use UPLOAD_CHANNEL env (#962)
parent
6a0053e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
packaging/pkg_helpers.bash
packaging/pkg_helpers.bash
+2
-3
No files found.
packaging/pkg_helpers.bash
View file @
ba00419a
...
@@ -171,8 +171,7 @@ setup_pip_pytorch_version() {
...
@@ -171,8 +171,7 @@ setup_pip_pytorch_version() {
else
else
pip_install
"torch==
$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX
"
\
pip_install
"torch==
$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX
"
\
-f
https://download.pytorch.org/whl/torch_stable.html
\
-f
https://download.pytorch.org/whl/torch_stable.html
\
-f
https://download.pytorch.org/whl/test/torch_test.html
\
-f
"https://download.pytorch.org/whl/
${
UPLOAD_CHANNEL
}
/torch_
${
UPLOAD_CHANNEL
}
.html"
-f
https://download.pytorch.org/whl/nightly/torch_nightly.html
fi
fi
}
}
...
@@ -185,7 +184,7 @@ setup_conda_pytorch_constraint() {
...
@@ -185,7 +184,7 @@ setup_conda_pytorch_constraint() {
export
CONDA_CHANNEL_FLAGS
=
"-c pytorch-nightly"
export
CONDA_CHANNEL_FLAGS
=
"-c pytorch-nightly"
export
PYTORCH_VERSION
=
"
$(
conda search
--json
'pytorch[channel=pytorch-nightly]'
| python
-c
"import sys, json, re; print(re.sub(r'
\\
+.*
$'
, '', json.load(sys.stdin)['pytorch'][-1]['version']))"
)
"
export
PYTORCH_VERSION
=
"
$(
conda search
--json
'pytorch[channel=pytorch-nightly]'
| python
-c
"import sys, json, re; print(re.sub(r'
\\
+.*
$'
, '', json.load(sys.stdin)['pytorch'][-1]['version']))"
)
"
else
else
export
CONDA_CHANNEL_FLAGS
=
"-c pytorch -c pytorch-
test -c pytorch-nightly
"
export
CONDA_CHANNEL_FLAGS
=
"-c pytorch -c pytorch-
${
UPLOAD_CHANNEL
}
"
fi
fi
if
[[
"
$CU_VERSION
"
==
cpu
]]
;
then
if
[[
"
$CU_VERSION
"
==
cpu
]]
;
then
export
CONDA_PYTORCH_BUILD_CONSTRAINT
=
"- pytorch==
$PYTORCH_VERSION
${
PYTORCH_VERSION_SUFFIX
}
"
export
CONDA_PYTORCH_BUILD_CONSTRAINT
=
"- pytorch==
$PYTORCH_VERSION
${
PYTORCH_VERSION_SUFFIX
}
"
...
...
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