Skip to content

Commit 934c85e

Browse files
committed
python notes
1 parent 72082ad commit 934c85e

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

pkg/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
135150
pv=`python --version 2>&1 | cut -d' ' -f2`
136151
python:
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

141157
files:
142158
rm -rf dist/hapi-server-$(VERSION)

0 commit comments

Comments
 (0)