Franck Pommereau

replaced Makefile

syntax: glob
*.pyc
*.spec
*~
,*
dist/
......
standalone:
rm -rf build dist
pyinstaller --clean -F -w bones.py bones_edit.py bones_machine.py
pyinstaller --clean -F -w bones_edit.py bones_machine.py
pyinstaller --clean -F -w bones_machine.py
# -*- mode: python -*-
a = Analysis(['bones.py', 'bones_edit.py', 'bones_machine.py'],
pathex=['/home/franck/work/cours/archi/bones'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='bones',
debug=False,
strip=None,
upx=True,
console=False )
# -*- mode: python -*-
a = Analysis(['bones_edit.py', 'bones_machine.py'],
pathex=['/home/franck/work/cours/archi/bones'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='bones_edit',
debug=False,
strip=None,
upx=True,
console=False )
# -*- mode: python -*-
a = Analysis(['bones_machine.py'],
pathex=['/home/franck/work/cours/archi/bones'],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='bones_machine',
debug=False,
strip=None,
upx=True,
console=False )
import os, shutil, glob, subprocess
def clean (dist=False) :
shutil.rmtree("build")
if dist :
shutil.rmtree("dist")
for path in glob.glob("*.spec") :
os.remove(path)
clean(True)
args = ["bones.py", "bones_edit.py", "bones_machine.py"]
while args :
subprocess.call(["pyinstaller", "--clean", "-F", "-w"] + args)
args.pop(0)
clean()