Skip to content

Commit

Permalink
Merge pull request #1883 from QuLogic/no-distutils
Browse files Browse the repository at this point in the history
Remove use of distutils
  • Loading branch information
greglucas authored Sep 22, 2021
2 parents 4a16d24 + 7147ab4 commit 867af19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@

import fnmatch
import os
import shutil
import subprocess
import warnings
from collections import defaultdict
from distutils.spawn import find_executable
from distutils.sysconfig import get_config_var
from sysconfig import get_config_var

from setuptools import Command, Extension, convert_path, setup

Expand Down Expand Up @@ -142,7 +142,7 @@ def find_package_tree(root_path, root_package):

# Proj
def find_proj_version_by_program(conda=None):
proj = find_executable('proj')
proj = shutil.which('proj')
if proj is None:
print(
'Proj {} must be installed.'.format(
Expand Down

0 comments on commit 867af19

Please sign in to comment.