-
Notifications
You must be signed in to change notification settings - Fork 1
/
cx_setup.py
67 lines (60 loc) · 2.04 KB
/
cx_setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import sys
import os
from cx_Freeze import setup, Executable
base = None
if sys.platform == "win32":
base = "Win32GUI"
# ADD FILES
files = ['icon.png', 'LICENSE', 'fonts/', 'test/', 'gui/', 'src/', 'analysis/', 'Download/',
'no_gui/', 'C:\\Users\\law5_\\.conda\\envs\\mdpertool\\Lib\\xdrlib.py']
# TARGET
target = Executable(
script="ui_main.py",
base=base,
icon="icon.png"
)
# PACKAGES
packages = ["OpenGL", "pymol", "parmed", "mdtraj", "openmm"]
# "os", "sys", "re", "matplotlib", "pandas", "pyqtgraph", "OpenGL", "pymol", "numpy",
# "networkx", "prody", "pystache", "shiboken2", "pdbfixer", "pyqtgraph", "openmm",
# "mdtraj", "parmed", "pyvis"
# SETUP CX FREEZE
setup(
name="MDPerTool",
version="0.1",
description="Allosteric Pathway Predicter",
author="Halil I. Ozdemir",
options={'build_exe': {'include_files': files, 'packages': packages}},
executables=[target]
)
# base = None
# if sys.platform == "win32":
# base = "Win32GUI"
#
# # dependencies
# build_exe_options = {
# "packages": ["os", "sys", "re", "PySide2.QtCore", "PySide2.QtWidgets", "PySide2.QtUiTools", "PySide2.QtQuick",
# "PySide2.QtQml", "PySide2.QtGui", "matplotlib", "pandas", "pyqtgraph", "OpenGL", "pymol", "numpy",
# "networkx", "prody", "pystache", "shiboken2", "pdbfixer", "pyqtgraph", "openmm",
# "mdtraj", "parmed", "pyvis", "OpenGL"],
#
# "include_files": ['LICENSE', 'fonts/', 'test/', 'gui/', 'src/', 'analysis/', 'Download/', 'no_gui/'],
# "excludes": ["tkinter", "PyQt5"],
# "build_exe": "build"
# }
#
# target = [
# Executable("ui_main.py",
# base=base,
# target_name="MDPerTool.exe",
# icon="icon.png"
# )
# ]
#
# setup(name="MDPerTool_GUI",
# version="0.1",
# description="Perturbation based Allosteric Pathway Finder",
# options={"build_exe": build_exe_options},
# executables=target,
# author="H. Ibrahim Ozdemir",
# )