Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import os
- import opcode
- import distutils
- from cx_Freeze import setup, Executable
- distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
- html_elements_path = os.path.join(os.getcwd(), 'dataset/html')
- # Dependencies are automatically detected, but it might need fine tuning.
- build_exe_options = {
- 'include_files': [
- (distutils_path, 'lib/distutils'),
- (html_elements_path, 'include/html')
- ],
- "packages": [
- "os",
- "cv2",
- "numpy",
- ],
- "excludes": [
- "tkinter",
- "scipy.spatial.cKDTree"
- ]
- }
- # GUI applications require a different base on Windows (the default is for a
- # console application).
- base = None
- if sys.platform == "win32":
- base = "Win32GUI"
- setup( name = "gui_new_microscope_cam",
- version = "0.1",
- description = "Microscope Camera!",
- options = {"build_exe": build_exe_options},
- executables = [Executable("gui_new_microscope_cam.py", base=base)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement