move basename operation from setup.py to install.py
This commit is contained in:
@ -56,7 +56,7 @@ for wheel in glob.glob('lammps-*.whl'):
|
|||||||
|
|
||||||
# copy shared object to the current folder so that
|
# copy shared object to the current folder so that
|
||||||
# it will show up in the installation at the expected location
|
# 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')
|
shutil.copy(args.lib,'lammps')
|
||||||
|
|
||||||
# create a virtual environment for building the wheel
|
# create a virtual environment for building the wheel
|
||||||
|
|||||||
@ -37,7 +37,7 @@ with open("README", "r") as fh:
|
|||||||
|
|
||||||
libname = os.environ.get("LAMMPS_SHARED_LIB")
|
libname = os.environ.get("LAMMPS_SHARED_LIB")
|
||||||
if libname:
|
if libname:
|
||||||
pkgdata = {'lammps': [ os.path.basename(libname) ]}
|
pkgdata = {'lammps': [ libname ]}
|
||||||
bdist = BinaryDistribution
|
bdist = BinaryDistribution
|
||||||
else:
|
else:
|
||||||
pkgdata = {}
|
pkgdata = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user