make_win32.py 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Files not needed: Qt, tk.dll, tcl.dll, tk/, tcl/, vtk/,
  2. # scipy.lib.lapack.flapack.pyd, scipy.lib.blas.fblas.pyd,
  3. # numpy.core._dotblas.pyd, scipy.sparse.sparsetools._bsr.pyd,
  4. # scipy.sparse.sparsetools._csr.pyd, scipy.sparse.sparsetools._csc.pyd,
  5. # scipy.sparse.sparsetools._coo.pyd
  6. import os, site, sys
  7. from cx_Freeze import setup, Executable
  8. ## Get the site-package folder, not everybody will install
  9. ## Python into C:\PythonXX
  10. site_dir = site.getsitepackages()[1]
  11. include_files = []
  12. include_files.append((os.path.join(site_dir, "shapely"), "shapely"))
  13. include_files.append((os.path.join(site_dir, "matplotlib"), "matplotlib"))
  14. include_files.append(("share", "share"))
  15. include_files.append((os.path.join(site_dir, "rtree"), "rtree"))
  16. include_files.append(("README.md", "README.md"))
  17. include_files.append(("LICENSE", "LICENSE"))
  18. base = None
  19. ## Lets not open the console while running the app
  20. if sys.platform == "win32":
  21. base = "Win32GUI"
  22. buildOptions = dict(
  23. compressed=False,
  24. include_files=include_files,
  25. icon='share/flatcam_icon48.ico',
  26. # excludes=['PyQt4', 'tk', 'tcl']
  27. excludes=['scipy.lib.lapack.flapack.pyd',
  28. 'scipy.lib.blas.fblas.pyd',
  29. 'QtOpenGL4.dll']
  30. )
  31. print "INCLUDE_FILES", include_files
  32. execfile('clean.py')
  33. setup(
  34. name="FlatCAM",
  35. author="Juan Pablo Caram",
  36. version="8.4",
  37. description="FlatCAM: 2D Computer Aided PCB Manufacturing",
  38. options=dict(build_exe=buildOptions),
  39. executables=[Executable("FlatCAM.py", base=base)]
  40. )