Skip to content

Commit a6dd23a

Browse files
committed
Remove distutils maybe
1 parent 69892a3 commit a6dd23a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/semiwrap/platforms.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
from distutils.util import get_platform as _get_platform
1+
try:
2+
from distutils.util import get_platform as _get_platform
3+
except ImportError:
4+
from sysconfig import get_platform as _get_platform
5+
26
from dataclasses import dataclass, field
37
from typing import List
48
import re

0 commit comments

Comments
 (0)