From f6ebab4780c42cdb7bf321a8580a8c04f5f1681a Mon Sep 17 00:00:00 2001 From: adator <85586985+adator85@users.noreply.github.com> Date: Sun, 1 Sep 2024 14:21:25 +0200 Subject: [PATCH] . --- core/installation.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/installation.py b/core/installation.py index b614551..f931302 100644 --- a/core/installation.py +++ b/core/installation.py @@ -1,6 +1,4 @@ -from importlib.util import find_spec from dataclasses import dataclass -from pathlib import Path from subprocess import check_call, run, CalledProcessError, PIPE from platform import python_version, python_version_tuple from sys import exit @@ -207,7 +205,7 @@ class Install: print("===> Verifier si pip est a jour") self.run_subprocess([self.config.venv_python_executable, '-m', 'pip', 'install', '--upgrade', 'pip']) - if find_spec('greenlet') is None: + if not self.check_package('greenlet'): self.run_subprocess([self.config.venv_pip_executable, 'install', '--only-binary', ':all:', 'greenlet']) print('====> Module Greenlet installé')