Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of distutils #1883

Merged
merged 1 commit into from
Sep 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
QuLogic marked this conversation as resolved.
Show resolved Hide resolved
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
QuLogic marked this conversation as resolved.
Show resolved Hide resolved

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