Files
lammps-gran-kokkos/python/makewheel.py
2022-06-14 10:36:11 -04:00

19 lines
585 B
Python

#!/usr/bin/env python
import sys,os
# find python script to activate the virtual environment and source it
if sys.platform == 'win32':
virtenv=os.path.join('buildwheel','Scripts','activate_this.py')
else:
virtenv=os.path.join('buildwheel','bin','activate_this.py')
exec(open(virtenv).read(), {'__file__': virtenv})
# update pip and install all requirements to build the wheel
os.system('python -m pip install --upgrade pip')
os.system('python -m pip install --upgrade -r wheel_requirements.txt')
print("Building new binary wheel")
os.system('python -m build -n --wheel -o .')