Commit d48a58d8 authored by Michał Górny's avatar Michał Górny Committed by Jason Madden

Switch to the non-legacy setuptools backend

Use the non-legacy `setuptools.build_meta` backend.  Prepend the setup
directory to `sys.path` prior to importing modules relative to it.

Fixes #1910
parent 275b7d97
[build-system] [build-system]
# Our setup.py imports other things from this directory, meaning build-backend = "setuptools.build_meta"
# in needs to be on sys.path. That's not guaranteed in a PEP517 world;
# the __legacy__ build module makes that true. Ultimately we need to do that
# ourself (and/or continue to simplify our build system).
build-backend = "setuptools.build_meta:__legacy__"
# Build dependencies. Remember to change these in make-manylinux and appveyor.yml # Build dependencies. Remember to change these in make-manylinux and appveyor.yml
# if you add/remove/change them. # if you add/remove/change them.
requires = [ requires = [
......
...@@ -13,6 +13,8 @@ from setuptools import Extension, setup ...@@ -13,6 +13,8 @@ from setuptools import Extension, setup
from setuptools import find_packages from setuptools import find_packages
sys.path.insert(0, os.path.dirname(__file__))
from _setuputils import read from _setuputils import read
from _setuputils import read_version from _setuputils import read_version
from _setuputils import PYPY, WIN from _setuputils import PYPY, WIN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment