Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.38 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. try:
  4.     # py2exe 0.6.4 introduced a replacement modulefinder.
  5.     # This means we have to add package paths there, not to the built-in
  6.     # one.  If this new modulefinder gets integrated into Python, then
  7.     # we might be able to revert this some day.
  8.     # if this doesn't work, try import modulefinder
  9.     try:
  10.         import py2exe.mf as modulefinder
  11.     except ImportError:
  12.         import modulefinder
  13.     import win32com, sys
  14.     for p in win32com.__path__[1:]:
  15.         modulefinder.AddPackagePath("win32com", p)
  16.     for extra in ["win32com.shell"]: #,"win32com.mapi"
  17.         __import__(extra)
  18.         m = sys.modules[extra]
  19.         for p in m.__path__[1:]:
  20.             modulefinder.AddPackagePath(extra, p)
  21. except ImportError:
  22.     # no build path setup, no worries.
  23.     pass
  24.  
  25. from distutils.core import setup
  26. import py2exe
  27.  
  28. setup(
  29.     name="Wifi Barcode Scaner Server",
  30.     version="1.0a",
  31.     description="Servidor para el scaner wifi",
  32.     author="Ricardo D. Quiroga - MPI",
  33.     #author="ricardoquiroga.dev@gmail.com",
  34.     url="",
  35.     license="GPL3",
  36.     scripts=[
  37.         "server.py",
  38.         "bottle.py"
  39.     ],
  40.     console=["server.py"],
  41.     options={
  42.         "py2exe": {
  43.             "compressed": 1,
  44.             "optimize": 2,            
  45.             "ascii": 1,
  46.             "bundle_files": 1
  47.         },
  48.     },
  49.     zipfile=None
  50. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement