Browse Source

Configure PyInstaller using docker-compose.spec

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad 10 years ago
parent
commit
b165ae07c9
5 changed files with 26 additions and 4 deletions
  1. 0 1
      .dockerignore
  2. 0 1
      .gitignore
  3. 24 0
      docker-compose.spec
  4. 1 1
      script/build-linux-inner
  5. 1 1
      script/build-osx

+ 0 - 1
.dockerignore

@@ -5,6 +5,5 @@
 build
 coverage-html
 dist
-docker-compose.spec
 docs/_site
 venv

+ 0 - 1
.gitignore

@@ -5,6 +5,5 @@
 /build
 /coverage-html
 /dist
-/docker-compose.spec
 /docs/_site
 /venv

+ 24 - 0
docker-compose.spec

@@ -0,0 +1,24 @@
+# -*- mode: python -*-
+
+block_cipher = None
+
+a = Analysis(['bin/docker-compose'],
+             pathex=['.'],
+             hiddenimports=[],
+             hookspath=None,
+             runtime_hooks=None,
+             cipher=block_cipher)
+
+pyz = PYZ(a.pure,
+             cipher=block_cipher)
+
+exe = EXE(pyz,
+          a.scripts,
+          a.binaries,
+          a.zipfiles,
+          a.datas,
+          name='docker-compose',
+          debug=False,
+          strip=None,
+          upx=True,
+          console=True )

+ 1 - 1
script/build-linux-inner

@@ -8,6 +8,6 @@ mkdir -p `pwd`/dist
 chmod 777 `pwd`/dist
 
 pip install -r requirements-build.txt
-su -c "pyinstaller -F bin/docker-compose" user
+su -c "pyinstaller docker-compose.spec" user
 mv dist/docker-compose $TARGET
 $TARGET version

+ 1 - 1
script/build-osx

@@ -8,6 +8,6 @@ virtualenv -p /usr/local/bin/python venv
 venv/bin/pip install -r requirements.txt
 venv/bin/pip install -r requirements-build.txt
 venv/bin/pip install .
-venv/bin/pyinstaller -F bin/docker-compose
+venv/bin/pyinstaller docker-compose.spec
 mv dist/docker-compose dist/docker-compose-Darwin-x86_64
 dist/docker-compose-Darwin-x86_64 version