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

MNT: Use pathlib for path conversions in setup.py #2026

Closed
wants to merge 1 commit into from

Conversation

greglucas
Copy link
Contributor

This allows building with newer setuptools (61.0.0+) which have
removed convert_path, which we can just rely on pathlib for here. Also removes some unused imports.

fixes #2021

This allows building with newer setuptools (61.0.0+) which have
removed convert_path, which we can just rely on pathlib for here.
import os
from pathlib import Path

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E402 module level import not at top of file

import shutil
import subprocess
import warnings
from collections import defaultdict
from sysconfig import get_config_var

from setuptools import Command, Extension, convert_path, setup
from setuptools import Extension, setup

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E402 module level import not at top of file

@greglucas
Copy link
Contributor Author

Oops, I did not see that there was already another PR opened to address this. Lets try to merge the other one over this if possible.

@pierresouchay
Copy link

@greglucas & @glentakahashii You both close your PRs...

@greglucas
Copy link
Contributor Author

I just opened a new one with yet a different approach. #2027

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cartopy installation fails with setuptools 61.0.0
3 participants