update install.py script to build a wheel and install that

This commit is contained in:
Axel Kohlmeyer
2022-02-24 21:47:37 -05:00
parent 891d3c8296
commit 4b7731e831
5 changed files with 44 additions and 98 deletions

15
python/makewheel.py Normal file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env python
import sys,os,shutil
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})
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 --wheel -o .')