purge build folder from within install.py script
This commit is contained in:
@ -59,6 +59,10 @@ olddir = os.path.abspath('.')
|
||||
os.chdir(os.path.dirname(args.package))
|
||||
|
||||
# remove any wheel files left over from previous calls
|
||||
if os.path.isdir(os.path.join(olddir,"build")):
|
||||
print("Cleaning old build directory")
|
||||
shutil.rmtree(os.path.join(olddir,"build"))
|
||||
|
||||
print("Purging existing wheels...")
|
||||
for wheel in glob.glob('lammps-*.whl'):
|
||||
print("deleting " + wheel)
|
||||
|
||||
Reference in New Issue
Block a user