File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,16 +127,32 @@ node:
127127 cd node-$(NODEV ) ; make -j4
128128 cp node-$(NODEV ) /bin/node bin/node-$(NODEV ) -$(OS )
129129
130+
131+ # ### Below not yet used.
132+
130133# Use old Linux system to compile.
131134# Don't need to do for OS-X as it ships with OS. Smaller Linux
132135# distros don't include Python, so have it in case needed.
133136# TODO: Finish python.py.
134137
138+ # Works, but no easy way to copy binary to local ...
139+ pythoni :
140+ docker pull six8/pyinstaller-alpine
141+ docker run --rm \
142+ -v " ${PWD} :/src" \
143+ six8/pyinstaller-alpine \
144+ --noconfirm \
145+ --onefile \
146+ --log-level DEBUG \
147+ --clean \
148+ python/python.py
149+
135150pv =` python --version 2>&1 | cut -d' ' -f2 `
136151python :
137152 cd python/; mkdir tmp; cp python.py tmp/
138153 cd python/tmp; pyinstaller python.py --onefile
139154 cp python/tmp/dist/python bin/python-$(pv ) -$(OS )
155+ ln -s bin/python-$(pv ) -$(OS ) bin/python
140156
141157files :
142158 rm -rf dist/hapi-server-$(VERSION )
You can’t perform that action at this time.
0 commit comments