From 74defeb102c8cdd6c33ef9a2f0e90e345d082ba8 Mon Sep 17 00:00:00 2001 From: swryan Date: Tue, 28 May 2024 13:34:06 -0400 Subject: [PATCH] remove setuptools --- pyproject.toml | 1 - testflo/test.py | 6 +++--- testflo/util.py | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c2e52e3..c590e12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", ] dependencies = [ - "setuptools", "coverage>=6.0", ] diff --git a/testflo/test.py b/testflo/test.py index b1e0641..4924318 100644 --- a/testflo/test.py +++ b/testflo/test.py @@ -2,6 +2,7 @@ import os import sys +import shutil import time import warnings import traceback @@ -23,11 +24,10 @@ from testflo.devnull import DevNull -from distutils import spawn mpirun_exe = None -if spawn.find_executable("mpirun") is not None: +if shutil.which("mpirun") is not None: mpirun_exe = "mpirun" -elif spawn.find_executable("mpiexec") is not None: +elif shutil.which("mpiexec") is not None: mpirun_exe = "mpiexec" diff --git a/testflo/util.py b/testflo/util.py index c0323e7..2d27609 100644 --- a/testflo/util.py +++ b/testflo/util.py @@ -17,7 +17,6 @@ from argparse import ArgumentParser, _AppendAction -from testflo.cover import start_coverage, stop_coverage _store = {}