Skip to content

Commit 52a6b94

Browse files
committed
Remove dependency on distutils, was removed in Python 3.12
1 parent 143752b commit 52a6b94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import distutils.cmd
21
import os
32
import subprocess
43

5-
from setuptools import find_packages, setup
4+
from setuptools import Command, find_packages, setup
65

76
exec(open("psqlextra/_version.py").read())
87

98

10-
class BaseCommand(distutils.cmd.Command):
9+
class BaseCommand(Command):
1110
user_options = []
1211

1312
def initialize_options(self):

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ deps =
2020
psycopg28: psycopg2[binary]~=2.8
2121
psycopg29: psycopg2[binary]~=2.9
2222
psycopg31: psycopg[binary]~=3.1
23+
setuptools
2324
.[test]
2425
setenv =
2526
DJANGO_SETTINGS_MODULE=settings

0 commit comments

Comments
 (0)