From 7c11d1675d415639aedff05ca42b1b127507b081 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 27 Feb 2022 06:33:22 -0500 Subject: [PATCH] fix bug with `make install` --- python/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/setup.py b/python/setup.py index aeb5b2d881..b3c53819aa 100644 --- a/python/setup.py +++ b/python/setup.py @@ -27,7 +27,6 @@ class BinaryDistribution(Distribution): def has_ext_modules(foo): return True -libname = os.path.basename(os.environ.get("LAMMPS_SHARED_LIB")) if version_info.major >= 3: pkgs = ['lammps', 'lammps.mliap'] else: @@ -36,8 +35,9 @@ else: with open("README", "r") as fh: long_description = fh.read() +libname = os.environ.get("LAMMPS_SHARED_LIB") if libname: - pkgdata = {'lammps': [ libname ]} + pkgdata = {'lammps': [ os.path.basename(libname) ]} bdist = BinaryDistribution else: pkgdata = {}