Skip to content

Commit

Permalink
Added the pyinstaller support for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Dade916 committed Jan 21, 2018
1 parent 7886f23 commit cd7f34b
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 0 deletions.
37 changes: 37 additions & 0 deletions samples/pyluxcoreconsole/pyluxcoreconsole.win.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- mode: python -*-

# To use as: pyinstaller samples/pyluxcoreconsole/pyluxcoreconsole.win.spec

block_cipher = None


a = Analysis(['pyluxcoreconsole.py'],
pathex=['../..'],
binaries=[
('../../../WindowsCompile/Build_CMake/LuxCore/lib/Release/pyluxcore.pyd', '.'),
('../../lib/pyluxcoretools.zip', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/embree.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/tbb.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/OpenImageIO.dll', '.')
],
datas=[],
hiddenimports=['uuid'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='pyluxcoreconsole',
debug=False,
strip=False,
upx=True,
console=True )

37 changes: 37 additions & 0 deletions samples/pyluxcoremerge/pyluxcoremerge.win.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- mode: python -*-

# To use as: pyinstaller samples/pyluxcoremerge/pyluxcoremerge.win.spec

block_cipher = None


a = Analysis(['pyluxcoremerge.py'],
pathex=['../..'],
binaries=[
('../../../WindowsCompile/Build_CMake/LuxCore/lib/Release/pyluxcore.pyd', '.'),
('../../lib/pyluxcoretools.zip', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/embree.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/tbb.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/OpenImageIO.dll', '.')
],
datas=[],
hiddenimports=['uuid'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='pyluxcoremerge',
debug=False,
strip=False,
upx=True,
console=True )

37 changes: 37 additions & 0 deletions samples/pyluxcorenetconsole/pyluxcorenetconsole.win.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- mode: python -*-

# To use as: pyinstaller samples/pyluxcorenetconsole/pyluxcorenetconsole.win.spec

block_cipher = None


a = Analysis(['pyluxcorenetconsole.py'],
pathex=['../..'],
binaries=[
('../../../WindowsCompile/Build_CMake/LuxCore/lib/Release/pyluxcore.pyd', '.'),
('../../lib/pyluxcoretools.zip', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/embree.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/tbb.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/OpenImageIO.dll', '.')
],
datas=[],
hiddenimports=['uuid'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='pyluxcorenetconsole',
debug=False,
strip=False,
upx=True,
console=True )

37 changes: 37 additions & 0 deletions samples/pyluxcorenetnode/pyluxcorenetnode.win.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# -*- mode: python -*-

# To use as: pyinstaller samples/pyluxcorenetnode/pyluxcorenetnode.win.spec

block_cipher = None


a = Analysis(['pyluxcorenetnode.py'],
pathex=['../..'],
binaries=[
('../../../WindowsCompile/Build_CMake/LuxCore/lib/Release/pyluxcore.pyd', '.'),
('../../lib/pyluxcoretools.zip', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/embree.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/tbb.dll', '.'),
('../../../WindowsCompileDeps/x64/Release/lib/OpenImageIO.dll', '.')
],
datas=[],
hiddenimports=['uuid'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='pyluxcorenetnode',
debug=False,
strip=False,
upx=True,
console=True )

0 comments on commit cd7f34b

Please sign in to comment.