Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pyprophet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,7 @@ def __init__(self, prefix=prefix, dirname=dirname, **kw):

print "%d seconds and %d msecs wall time" % (seconds, msecs)
print

if __name__ == "__main__":
main()

5 changes: 5 additions & 0 deletions tools/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

Build as

$ python pyinstaller.py -F main.spec

42 changes: 42 additions & 0 deletions tools/main.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# -*- mode: python -*-

import pandas
import numpy
import sklearn.lda
import sklearn.utils
import sklearn.utils.sparsetools
import sklearn.utils.sparsetools._graph_validation

block_cipher = None

import inspect
# the build folder should be the first path on the stack
dirname = os.path.dirname(os.path.abspath( inspect.stack()[0][1] ))
pyprophet_exe = os.path.join(os.path.join(os.path.join(dirname, ".."), "pyprophet"), "main.py")

a = Analysis([pyprophet_exe],
hiddenimports=[],
hookspath=None,
runtime_hooks=None,
cipher=block_cipher)

a.datas.append(("sklearn/utils/sparsetools/_graph_validation.py", os.path.join(os.path.dirname(sklearn.__file__), 'utils/sparsetools/_graph_validation.py'),"BINARY"))
a.datas.append(("sklearn/utils/sparsetools/_graph_tools.so", os.path.join(os.path.dirname(sklearn.__file__), 'utils/sparsetools/_graph_tools.so'),"BINARY"))

pyz = PYZ(a.pure,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='pyprophet',
debug=False,
strip=None,
upx=True,
console=True )
app = BUNDLE(exe,
name='pyprophet.app',
bundle_identifier='ch.ethz.imsb.pyprophet',
version='1.0',)