from setuptools import setup
import os
import py2exe
import matplotlib

includes = [
  'sip',
  'yaml',
  'PyQt5',
  'PyQt5.uic',
  'PyQt5.QtCore',
  'PyQt5.QtDesigner',
  'PyQt5.QtGui',
  'PyQt5.QtNetwork',
  'PyQt5.QtMultimedia',
  'PyQt5.QtPrintSupport',
  'PyQt5.QtWebSockets',
  'PyQt5.QtWidgets',
  'PyQt5.QtXml',
  'numpy',
  'matplotlib.backends.backend_qt5agg'
]

setup(
  windows = [{'script': 'exec.py'}],
  data_files = matplotlib.get_py2exe_datafiles() + [
    ('', ['d:\\Python34\\Lib\\site-packages\\PyQt5\\Qt5DesignerComponents.dll', 'd:\\Python34\\Lib\\site-packages\\PyQt5\\designer.exe']),
    ('platforms', ['d:\\Python34\\Lib\\site-packages\\PyQt5\\plugins\\platforms\\qwindows.dll'])
  ],
  options = {
    'py2exe':{
      'includes': includes,
      'bundle_files': 2,
      'compressed': True
    }
  }
)

@@ -91,18 +91,8 @@
 p',%0A
-  'yaml',%0A
   'P
@@ -352,16 +352,31 @@
 _qt5agg'
+,%0A  'smithplot'
 %0A%5D%0A%0Asetu
@@ -475,25 +475,25 @@
 %0A    ('', %5B'
-d
+c
 :%5C%5CPython34%5C
@@ -549,17 +549,17 @@
 .dll', '
-d
+c
 :%5C%5CPytho
@@ -627,17 +627,17 @@
 rms', %5B'
-d
+c
 :%5C%5CPytho
@@ -765,17 +765,16 @@
 ncludes,
-%0D
 %0A      '
@@ -792,11 +792,10 @@
 s': 
-2,%0D
+3,
 %0A   

add smithplot, remove yaml and update paths in scripts/setup.py