Skip to content

Commit

Permalink
Delete CPU build torch package
Browse files Browse the repository at this point in the history
The GPU package doesn't overwrite the CPU package.
  • Loading branch information
xxyzz committed Nov 3, 2023
1 parent a5d6bc9 commit 57f975b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ body:

- type: textarea
attributes:
label: Reproduce steps
label: Plugin settings and reproduce steps
placeholder: |
0. Enable the X feature
1. Go to ...
2. Click on ...
3. Scroll down to ...
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from calibre.customize import InterfaceActionBase

VERSION = (3, 29, 7)
VERSION = (3, 29, 8)


class WordDumbDumb(InterfaceActionBase):
Expand Down
2 changes: 1 addition & 1 deletion data/deps.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cupy": "12.2.0",
"lxml": "4.9.3",
"rapidfuzz": "3.4.0",
"rapidfuzz": "3.5.2",
"spacy_cpu_model": "3.7.0",
"spacy_trf_model": "3.7.2",
"thinc-apple-ops": "0.1.4",
Expand Down
2 changes: 2 additions & 0 deletions deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def pip_install(
if not any(LIBS_PATH.glob(pattern)):
if notif:
notif.put((0, f"Installing {pkg}"))
if pkg == "torch": # delete CPU torch pkg
shutil.rmtree(LIBS_PATH / "torch", ignore_errors=True)

args = [
PY_PATH,
Expand Down

0 comments on commit 57f975b

Please sign in to comment.