Skip to content

Commit 02edf87

Browse files
author
v.shepard
committed
Replace deprecated distutils find_executable on setuptools find_packages
1 parent 8979f83 commit 02edf87

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testgres/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
from contextlib import contextmanager
1414
from packaging.version import Version
15-
from distutils.spawn import find_executable
15+
try:
16+
from setuptools import find_packages as find_executable
17+
except ImportError:
18+
from distutils.spawn import find_executable
1619
from six import iteritems
1720

1821
from .config import testgres_config

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy