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
6bae1e9e
"vscode:/vscode.git/clone" did not exist on "ecfaac11f8e072f7aad0e419a5a0c5e01180dfda"
Unverified
Commit
6bae1e9e
authored
Oct 15, 2021
by
moto
Committed by
GitHub
Oct 15, 2021
Browse files
Exclude prototype if it is in release (#1870)
parent
515ad59c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
setup.py
setup.py
+14
-1
No files found.
setup.py
View file @
6bae1e9e
...
@@ -57,6 +57,19 @@ class clean(distutils.command.clean.clean):
...
@@ -57,6 +57,19 @@ class clean(distutils.command.clean.clean):
shutil
.
rmtree
(
str
(
path
),
ignore_errors
=
True
)
shutil
.
rmtree
(
str
(
path
),
ignore_errors
=
True
)
def
_get_packages
():
exclude
=
[
"build*"
,
"test*"
,
"torchaudio.csrc*"
,
"third_party*"
,
"build_tools*"
,
]
if
os
.
environ
.
get
(
'UPLOAD_CHANNEL'
,
''
)
==
'test'
:
exclude
.
append
(
"torchaudio.prototype"
)
return
find_packages
(
exclude
=
exclude
)
setup
(
setup
(
name
=
"torchaudio"
,
name
=
"torchaudio"
,
version
=
version
,
version
=
version
,
...
@@ -81,7 +94,7 @@ setup(
...
@@ -81,7 +94,7 @@ setup(
"Topic :: Multimedia :: Sound/Audio"
,
"Topic :: Multimedia :: Sound/Audio"
,
"Topic :: Scientific/Engineering :: Artificial Intelligence"
"Topic :: Scientific/Engineering :: Artificial Intelligence"
],
],
packages
=
find
_packages
(
exclude
=
[
"build*"
,
"test*"
,
"torchaudio.csrc*"
,
"third_party*"
,
"build_tools*"
]
),
packages
=
_get
_packages
(),
ext_modules
=
setup_helpers
.
get_ext_modules
(),
ext_modules
=
setup_helpers
.
get_ext_modules
(),
cmdclass
=
{
cmdclass
=
{
'build_ext'
:
setup_helpers
.
CMakeBuild
,
'build_ext'
:
setup_helpers
.
CMakeBuild
,
...
...
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