Add freeze.py for bbfreeze packaging

This simple script allows a user to make a binary distributable salt
system. Execute it in a system with salt already installed and a
platform specific group of all of the deps needed by Salt is created.
This commit is contained in:
Thomas S Hatch 2012-04-09 13:31:51 -06:00
parent 827f070c4e
commit 708de85aa5

13
pkg/freeze/freeze.py Normal file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env python
from bbfreeze import Freezer
includes = ['zmq', 'zmq.utils.strtypes', 'zmq.utils.jsonapi']
excludes = ['Tkinter', 'tcl', 'Tkconstants']
fre = Freezer(distdir="bb_salt", includes=includes, excludes=excludes)
fre.addScript('/usr/bin/salt-minion')
fre.use_compression = 0
fre.include_py = True
fre()