From aa0778504158eeb8ca27c68066fcd0274cebc029 Mon Sep 17 00:00:00 2001 From: Andreas Poehlmann Date: Fri, 24 Feb 2023 10:50:33 +0100 Subject: [PATCH] setup: don't use distutils for build_js subcommand See: pypa/setuptools#3256 --- pyproject.toml | 4 ++-- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 64cc9ca..7425054 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [build-system] requires = [ - "setuptools >= 42", + "setuptools >= 62.4", "wheel", - "setuptools_scm[toml]>=3.4", + "setuptools_scm[toml]>=6.2", ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 21bb29f..83f36d3 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,10 @@ -import distutils.command.build import json import os import pathlib import shutil import warnings +import setuptools.command.build from setuptools import Command from setuptools import setup from setuptools.command.develop import develop @@ -47,7 +47,7 @@ def run(self): # noinspection PyUnresolvedReferences -distutils.command.build.build.sub_commands.append(("build_js", None)) +setuptools.command.build.build.sub_commands.append(("build_js", None)) class DevelopWithJS(develop):