From cf3ae8cdd26270e56dce49c25aba76dde067217c Mon Sep 17 00:00:00 2001 From: Nicholas Lubbers Date: Tue, 22 Dec 2020 09:59:50 -0700 Subject: [PATCH] switch setuptools back to distutils --- python/install.py | 4 ++-- python/setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/install.py b/python/install.py index 8c632c096e..6765c33925 100644 --- a/python/install.py +++ b/python/install.py @@ -95,7 +95,7 @@ print("Installing LAMMPS Python package version %s into site-packages folder" % # we need to switch to the folder of the python package os.chdir(os.path.dirname(args.package)) -from setuptools import setup, find_packages +from distutils.core import setup from distutils.sysconfig import get_python_lib import site @@ -107,7 +107,7 @@ setup_kwargs= dict(name="lammps", url="https://lammps.sandia.gov", description="LAMMPS Molecular Dynamics Python package", license="GPL", - packages=find_packages(), + packages=["lammps","lammps.mliap"], ) tryuser=False diff --git a/python/setup.py b/python/setup.py index 50e215cb09..aff0b14671 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,6 +1,6 @@ # this only installs the LAMMPS python package # it assumes the LAMMPS shared library is already installed -from setuptools import setup, find_packages +from distutils.core import setup import os LAMMPS_PYTHON_DIR = os.path.dirname(os.path.realpath(__file__)) @@ -22,5 +22,5 @@ setup( url = "https://lammps.sandia.gov", description = "LAMMPS Molecular Dynamics Python package", license = "GPL", - packages=find_packages(), + packages=["lammps","lammps.mliap"], )