move basename operation from setup.py to install.py

This commit is contained in:
Axel Kohlmeyer 2022-02-27 07:02:39 -05:00
parent 7c11d1675d
commit 0be14d4ed8
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 = {}