From 0be14d4ed83f3db5281dbbd9823a7074f0be9722 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sun, 27 Feb 2022 07:02:39 -0500 Subject: [PATCH] move basename operation from setup.py to install.py --- python/install.py | 2 +- python/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/install.py b/python/install.py index efb056df6b..a71a601c42 100644 --- a/python/install.py +++ b/python/install.py @@ -56,7 +56,7 @@ for wheel in glob.glob('lammps-*.whl'): # copy shared object to the current folder so that # it will show up in the installation at the expected location -os.putenv('LAMMPS_SHARED_LIB',args.lib) +os.putenv('LAMMPS_SHARED_LIB',os.path.basename(args.lib)) shutil.copy(args.lib,'lammps') # create a virtual environment for building the wheel diff --git a/python/setup.py b/python/setup.py index b3c53819aa..0097e3d596 100644 --- a/python/setup.py +++ b/python/setup.py @@ -37,7 +37,7 @@ with open("README", "r") as fh: libname = os.environ.get("LAMMPS_SHARED_LIB") if libname: - pkgdata = {'lammps': [ os.path.basename(libname) ]} + pkgdata = {'lammps': [ libname ]} bdist = BinaryDistribution else: pkgdata = {}