Use setuptools instead of distutils in setup.py
distutils will be removed soon (Python 3.12)
This commit is contained in:
@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user