Skip to content

Commit

Permalink
more distutils deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Apr 16, 2023
1 parent 07fa5b2 commit c85a9bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/fixtures/extended_with_no_setup/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
import os
import shutil

from distutils.command.build_ext import build_ext
from distutils.core import Distribution
from distutils.core import Extension
from setuptools import Distribution
from setuptools import Extension
from setuptools.command.build_ext import build_ext


extensions = [Extension("extended.extended", ["extended/extended.c"])]


def build():
distribution = Distribution({"name": "extended", "ext_modules": extensions})
distribution.package_dir = "extended"
distribution.package_dir = {"extended": "extended"}

cmd = build_ext(distribution)
cmd.ensure_finalized()
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/extended_with_no_setup/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ script = "build.py"
generate-setup-file = false

[build-system]
requires = ["poetry-core>=1.5.0"]
requires = ["poetry-core>=1.5.0", "setuptools>=67.6.1"]
build-backend = "poetry.core.masonry.api"

0 comments on commit c85a9bc

Please sign in to comment.