From 03e147016894afbd6ce389c910ab5fc45cbd336c Mon Sep 17 00:00:00 2001 From: Rory Barnes Date: Fri, 6 Sep 2024 15:14:35 -0700 Subject: [PATCH] Made pip-install explicitly install setuptools to work with Python3.12. --- .github/workflows/pip-install.yml | 1 + setup.py | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/pip-install.yml b/.github/workflows/pip-install.yml index 934affb7..6654a65e 100644 --- a/.github/workflows/pip-install.yml +++ b/.github/workflows/pip-install.yml @@ -32,6 +32,7 @@ jobs: - name: Install cibuildwheel run: | python -m pip install -U pip + python -m pip install setuptools python -m pip install cibuildwheel - name: Build wheel on Linux diff --git a/setup.py b/setup.py index 851df596..64fbc43b 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,6 @@ import os import sys - -# if sys.version_info >= (3, 12): -# # For Python 3.12 and above, use setuptools -# from setuptools.command.clean import clean -# else: -# # For Python versions below 3.12, use distutils -# from distutils.command.clean import clean - from glob import glob - from setuptools import Extension, find_packages, setup from setuptools.command.build_ext import build_ext from setuptools.command.develop import develop