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
AutoAWQ
Commits
171c7aff
Unverified
Commit
171c7aff
authored
Feb 15, 2024
by
Casper
Committed by
GitHub
Feb 15, 2024
Browse files
Fix importlib (#344)
parent
890127fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
setup.py
setup.py
+3
-3
No files found.
setup.py
View file @
171c7aff
...
@@ -2,7 +2,7 @@ import os
...
@@ -2,7 +2,7 @@ import os
import
torch
import
torch
import
platform
import
platform
import
requests
import
requests
import
importlib
.util
import
importlib
_metadata
from
pathlib
import
Path
from
pathlib
import
Path
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
...
@@ -94,9 +94,9 @@ requirements = [
...
@@ -94,9 +94,9 @@ requirements = [
]
]
try
:
try
:
importlib
.
metadata
.
version
(
"autoawq-kernels"
)
importlib
_
metadata
.
version
(
"autoawq-kernels"
)
KERNELS_INSTALLED
=
True
KERNELS_INSTALLED
=
True
except
importlib
.
metadata
.
PackageNotFoundError
:
except
importlib
_
metadata
.
PackageNotFoundError
:
KERNELS_INSTALLED
=
False
KERNELS_INSTALLED
=
False
# kernels can be downloaded from pypi for cuda+121 only
# kernels can be downloaded from pypi for cuda+121 only
...
...
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