diff --git a/loopy.spec b/loopy.spec
new file mode 100644
index 0000000000000000000000000000000000000000..d2b85b45e5b079e91ecaab64493b5050b5598630
--- /dev/null
+++ b/loopy.spec
@@ -0,0 +1,24 @@
+# -*- mode: python -*-
+
+block_cipher = None
+
+
+a = Analysis(['bin/loopy'],
+             pathex=['/home/andreas/src/loopy'],
+             hiddenimports=[],
+             hookspath=None,
+             runtime_hooks=None,
+             excludes=["hedge"],
+             cipher=block_cipher)
+pyz = PYZ(a.pure,
+             cipher=block_cipher)
+exe = EXE(pyz,
+          a.scripts,
+          a.binaries,
+          a.zipfiles,
+          a.datas,
+          name='loopy',
+          debug=False,
+          strip=None,
+          upx=True,
+          console=True )
diff --git a/run-pyinstaller.sh b/run-pyinstaller.sh
new file mode 100755
index 0000000000000000000000000000000000000000..23e2774e2b55bb65da571cd7638250770c385ae7
--- /dev/null
+++ b/run-pyinstaller.sh
@@ -0,0 +1,8 @@
+#! /bin/bash
+
+rm -Rf dist/loopy
+
+pyinstaller \
+  --workpath=build/pyinstaller \
+  loopy.spec
+# --onedir \