setup.py 850 B

12345678910111213141516171819202122232425262728293031323334
  1. """
  2. This is a setup.py script generated by py2applet
  3. Usage:
  4. python setup.py py2app
  5. """
  6. from setuptools import setup
  7. from libs.VERSION import VERSION
  8. APP = ["SwitchHosts.py"]
  9. DATA_FILES = ["img/logo.png"]
  10. setup(
  11. app=APP,
  12. data_files=DATA_FILES,
  13. options={
  14. "py2app": {
  15. "argv_emulation": False,
  16. "includes": ["wx"],
  17. "iconfile": "img/logo.icns",
  18. "resources": [],
  19. "plist": {
  20. "CFBundleName": "SwitchHosts!",
  21. "CFBundleShortVersionString": VERSION, # must be in X.X.X format
  22. "CFBundleGetInfoString": "SwitchHosts! %s" % VERSION,
  23. "CFBundleExecutable": "SwitchHosts!",
  24. "CFBundleIdentifier": "net.oldj.switchhosts",
  25. },
  26. },
  27. },
  28. setup_requires=["py2app"],
  29. )