Skip to content

Commit

Permalink
must copy wheel to olddir when -w flag is not given
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Jul 3, 2023
1 parent b7bfc86 commit d23cebf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

from __future__ import print_function
import sys,os,shutil,glob,subprocess
import sys, os, shutil, glob, subprocess
from argparse import ArgumentParser

parser = ArgumentParser(prog='install.py',
Expand Down Expand Up @@ -105,12 +105,12 @@
for wheel in glob.glob('lammps-*.whl'):
if args.wheeldir:
shutil.copy(wheel, args.wheeldir)

print('wheel = ', wheel)
else:
shutil.copy(wheel, olddir)

# remove temporary folders and files
os.chdir(olddir)
shutil.rmtree('build-python',True)
shutil.rmtree('build-python', True)

# stop here if we were asked not to install the wheel we created
if args.noinstall:
Expand Down

0 comments on commit d23cebf

Please sign in to comment.