io4it 0.0.0.12.3__tar.gz → 0.0.0.12.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- io4it-0.0.0.12.4/PKG-INFO +8 -0
- io4it-0.0.0.12.4/io4it.egg-info/PKG-INFO +8 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/requires.txt +0 -5
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/setup.py +47 -26
- io4it-0.0.0.12.3/PKG-INFO +0 -10
- io4it-0.0.0.12.3/io4it.egg-info/PKG-INFO +0 -10
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/License.txt +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/SOURCES.txt +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/dependency_links.txt +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/entry_points.txt +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/namespace_packages.txt +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/io4it.egg-info/top_level.txt +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/__init__.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/ocr_function/__init__.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/ocr_function/word_converter.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWMarkdownizer.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWPathPropagator.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWS3Uploader.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWS3downloader.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWS3list.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWSpeechToText.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/OWwordpdf2docx.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/__init__.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/ow_in_or_out_path.ui +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/owspeechtotext.ui +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/wordpdf2docx.ui +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/category.svg +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/download.png +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/in_or_out.png +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/list_aws.png +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/md.png +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/speech_to_text.png +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/upload.png +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/icons/wordpdf2docx.png +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/__init__.py +0 -0
- {io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/setup.cfg +0 -0
|
@@ -7,30 +7,63 @@ import sys
|
|
|
7
7
|
import subprocess
|
|
8
8
|
from setuptools.command.install import install
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
from setuptools import setup, find_packages
|
|
11
|
+
import sys
|
|
12
|
+
import subprocess
|
|
13
|
+
import platform
|
|
14
|
+
from setuptools.command.install import install
|
|
15
|
+
|
|
16
|
+
class CustomInstall(install):
|
|
12
17
|
def run(self):
|
|
13
|
-
|
|
18
|
+
# Installation normale d'abord
|
|
19
|
+
install.run(self)
|
|
14
20
|
|
|
15
|
-
#
|
|
21
|
+
# Vérification CUDA seulement sur Windows
|
|
22
|
+
if platform.system() == "Windows":
|
|
23
|
+
self._install_torch_cuda()
|
|
24
|
+
|
|
25
|
+
def _install_torch_cuda(self):
|
|
26
|
+
try:
|
|
27
|
+
import torch
|
|
28
|
+
if torch.cuda.is_available():
|
|
29
|
+
print("\n PyTorch CUDA est déjà installé et fonctionnel")
|
|
30
|
+
return
|
|
31
|
+
except ImportError:
|
|
32
|
+
pass
|
|
33
|
+
|
|
34
|
+
print("\n🔧 Tentative d'installation de PyTorch CUDA 12.6...")
|
|
16
35
|
try:
|
|
17
36
|
subprocess.check_call([
|
|
18
37
|
sys.executable, '-m', 'pip', 'install',
|
|
19
|
-
'torch',
|
|
20
|
-
'
|
|
38
|
+
'torch==2.2.2+cu126',
|
|
39
|
+
'torchvision==0.17.2+cu126',
|
|
40
|
+
'torchaudio==2.2.2+cu126',
|
|
41
|
+
'--index-url', 'https://download.pytorch.org/whl/cu126',
|
|
42
|
+
'--no-deps' # Évite de réinstaller les dépendances existantes
|
|
21
43
|
])
|
|
22
44
|
print("\n\n PyTorch CUDA installé avec succès")
|
|
23
45
|
except subprocess.CalledProcessError:
|
|
24
|
-
print("\n\n
|
|
25
|
-
print("
|
|
26
|
-
|
|
46
|
+
print("\n\n ÉCHEC de l'installation automatique de PyTorch CUDA")
|
|
47
|
+
print("Veuillez exécuter MANUELLEMENT cette commande :")
|
|
48
|
+
print("pip install torch==2.2.2+cu126 torchvision==0.17.2+cu126 torchaudio==2.2.2+cu126 --index-url https://download.pytorch.org/whl/cu126")
|
|
27
49
|
|
|
28
|
-
#
|
|
50
|
+
# Configuration
|
|
29
51
|
NAME = "io4it"
|
|
52
|
+
VERSION = "0.0.0.12.4" # Incrémentez la version
|
|
30
53
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
54
|
+
INSTALL_REQUIRES = [
|
|
55
|
+
"boto3",
|
|
56
|
+
"docling",
|
|
57
|
+
"docling-core",
|
|
58
|
+
"speechbrain",
|
|
59
|
+
"whisper",
|
|
60
|
+
"whisper-openai",
|
|
61
|
+
"pyannote.audio",
|
|
62
|
+
"pyannote.core",
|
|
63
|
+
"wave",
|
|
64
|
+
"scikit-learn",
|
|
65
|
+
# Exclure torch intentionnellement
|
|
66
|
+
]
|
|
34
67
|
# Facultatif / Adaptable à souhait
|
|
35
68
|
AUTHOR = ""
|
|
36
69
|
AUTHOR_EMAIL = ""
|
|
@@ -71,14 +104,6 @@ INSTALL_REQUIRES = [
|
|
|
71
104
|
# NE PAS inclure torch ici
|
|
72
105
|
]
|
|
73
106
|
|
|
74
|
-
# Extras optionnels pour CUDA
|
|
75
|
-
EXTRAS_REQUIRE = {
|
|
76
|
-
"cuda": [
|
|
77
|
-
"torch",
|
|
78
|
-
"torchvision",
|
|
79
|
-
"torchaudio"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
107
|
# Spécifie le dossier contenant les widgets et le nom de section qu'aura l'addon sur Orange
|
|
83
108
|
ENTRY_POINTS = {
|
|
84
109
|
"orange.widgets": (
|
|
@@ -111,14 +136,10 @@ setup(
|
|
|
111
136
|
packages=PACKAGES,
|
|
112
137
|
package_data=PACKAGE_DATA,
|
|
113
138
|
install_requires=INSTALL_REQUIRES,
|
|
114
|
-
extras_require=EXTRAS_REQUIRE,
|
|
115
139
|
entry_points=ENTRY_POINTS,
|
|
116
140
|
namespace_packages=NAMESPACE_PACKAGES,
|
|
117
|
-
description="Package nécessitant PyTorch CUDA. Après installation, exécutez:\n"
|
|
118
|
-
"pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126",
|
|
119
|
-
|
|
120
141
|
cmdclass={
|
|
121
|
-
'install':
|
|
142
|
+
'install': CustomInstall,
|
|
122
143
|
},
|
|
123
144
|
)
|
|
124
145
|
|
io4it-0.0.0.12.3/PKG-INFO
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/ow_in_or_out_path.ui
RENAMED
|
File without changes
|
{io4it-0.0.0.12.3 → io4it-0.0.0.12.4}/orangecontrib/IO4IT/widgets/designer/owspeechtotext.ui
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|