must create virtualenv with same python we selected to run install.py

This commit is contained in:
Axel Kohlmeyer
2022-02-25 08:43:38 -05:00
parent e2092a5788
commit 4630a5ffb8

View File

@ -55,7 +55,7 @@ shutil.rmtree('buildwheel',True)
os.putenv('LAMMPS_SHARED_LIB',args.lib) os.putenv('LAMMPS_SHARED_LIB',args.lib)
#os.environ['LAMMPS_SHARED_LIB'] = args.lib #os.environ['LAMMPS_SHARED_LIB'] = args.lib
shutil.copy(args.lib,'lammps') shutil.copy(args.lib,'lammps')
os.system(sys.executable + ' -m virtualenv buildwheel') os.system(sys.executable + ' -m virtualenv buildwheel -p ' + sys.executable)
os.system(sys.executable + ' makewheel.py') os.system(sys.executable + ' makewheel.py')
# remove temporary folders and files # remove temporary folders and files