Skip to content

Commit

Permalink
remove distutils
Browse files Browse the repository at this point in the history
This patch removes the version check from __init__.py, which broke in Python
3.12 with the removal of distutils after being deprecated since Python 3.10. No
replacement test is introduced as dependency checks should be the
responsibility of pip.
  • Loading branch information
gertjanvanzwieten committed Nov 29, 2023
1 parent 3929717 commit bdc4881
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions nutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
'Numerical Utilities for Finite Element Analysis'

import sys
import numpy
from distutils.version import LooseVersion

assert sys.version_info >= (3, 5)
assert LooseVersion(numpy.version.version) >= LooseVersion('1.16'), 'nutils requires numpy 1.16 or higher, got {}'.format(numpy.version.version)

__version__ = version = '8.3'
version_name = 'idiyappam'
long_version = ('{} "{}"' if version_name else '{}').format(version, version_name)
Expand Down

0 comments on commit bdc4881

Please sign in to comment.