Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.95 KB | None | 0 0
  1. import sys
  2. import os
  3. import opcode
  4. import distutils
  5. from cx_Freeze import setup, Executable
  6.  
  7.  
  8. distutils_path = os.path.join(os.path.dirname(opcode.__file__), 'distutils')
  9. html_elements_path = os.path.join(os.getcwd(), 'dataset/html')
  10. # Dependencies are automatically detected, but it might need fine tuning.
  11. build_exe_options = {
  12.     'include_files': [
  13.         (distutils_path, 'lib/distutils'),
  14.         (html_elements_path, 'include/html')
  15.     ],
  16.     "packages": [
  17.         "os",
  18.         "cv2",
  19.         "numpy",
  20.     ],
  21.     "excludes": [
  22.         "tkinter",
  23.         "scipy.spatial.cKDTree"
  24.     ]
  25. }
  26.  
  27. # GUI applications require a different base on Windows (the default is for a
  28. # console application).
  29. base = None
  30. if sys.platform == "win32":
  31.     base = "Win32GUI"
  32.  
  33. setup(  name = "gui_new_microscope_cam",
  34.         version = "0.1",
  35.         description = "Microscope Camera!",
  36.         options = {"build_exe": build_exe_options},
  37.         executables = [Executable("gui_new_microscope_cam.py", base=base)])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement