From 67e22f75d7f36e14f6f106845cbc5f34594c23dd Mon Sep 17 00:00:00 2001 From: Katsuharu Tanaka <70760330+ktsh-tanaka@users.noreply.github.com> Date: Fri, 9 Sep 2022 23:45:50 +0900 Subject: [PATCH] Update setup.py Some changes due to error countermeasures. https://discuss.python.org/t/clarifying-the-differences-between-pep-517-and-setuptools/5979 --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b76e9f8..f48c185 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,10 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from setuptools import setup, find_packages + +try: + from setuptools import setup, Extension +except ImportError: + from distutils.core import setup, Extension with open('README.rst') as readme_file: