Use setuptools instead of distutils in setup.py

distutils will be removed soon (Python 3.12)
This commit is contained in:
Richard Berger
2022-01-26 14:58:25 -05:00
parent cdd23ac9c2
commit 2ed8e5cf02

View File

@ -1,9 +1,8 @@
# this only installs the LAMMPS python package # this only installs the LAMMPS python package
# it assumes the LAMMPS shared library is already installed # it assumes the LAMMPS shared library is already installed
from distutils.core import setup from setuptools import setup
from sys import version_info from sys import version_info
import os,time import os,time
LAMMPS_PYTHON_DIR = os.path.dirname(os.path.realpath(__file__)) LAMMPS_PYTHON_DIR = os.path.dirname(os.path.realpath(__file__))
LAMMPS_DIR = os.path.dirname(LAMMPS_PYTHON_DIR) LAMMPS_DIR = os.path.dirname(LAMMPS_PYTHON_DIR)
LAMMPS_SOURCE_DIR = os.path.join(LAMMPS_DIR, 'src') LAMMPS_SOURCE_DIR = os.path.join(LAMMPS_DIR, 'src')