From 2ed8e5cf02243c501a7b032c5045982a3cc00d91 Mon Sep 17 00:00:00 2001 From: Richard Berger Date: Wed, 26 Jan 2022 14:58:25 -0500 Subject: [PATCH] Use setuptools instead of distutils in setup.py distutils will be removed soon (Python 3.12) --- python/setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/setup.py b/python/setup.py index 1ae423d59f..5a6a54258a 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,9 +1,8 @@ # this only installs the LAMMPS python package # it assumes the LAMMPS shared library is already installed -from distutils.core import setup +from setuptools import setup from sys import version_info import os,time - LAMMPS_PYTHON_DIR = os.path.dirname(os.path.realpath(__file__)) LAMMPS_DIR = os.path.dirname(LAMMPS_PYTHON_DIR) LAMMPS_SOURCE_DIR = os.path.join(LAMMPS_DIR, 'src')