dropchat/setup.py

39 lines
859 B
Python
Raw Permalink Normal View History

2014-01-17 15:27:08 +01:00
import sys
import setuptools
2014-01-17 15:27:08 +01:00
options = {
"name": "Dropchat",
"version": "1.0",
2014-01-17 15:27:08 +01:00
"description": "Chat with dropbox.",
"author": "Rnhmjoj",
"author_email": "micheleguerinirocco@me.com",
"license": "MIT-GPL",
2014-01-17 15:27:08 +01:00
"app": ["dropchat.py"],
"data_files": ["prefs.json"],
"options": {},
2013-02-16 19:12:45 +01:00
"setup_requires": [],
}
if sys.platform == "darwin":
try:
import py2app
sys.argv += "py2app",
2014-01-17 15:27:08 +01:00
options["options"] = {"py2app": {"argv_emulation": False}}
options["setup_requires"] += "py2app",
except ImportError:
2014-01-17 15:27:08 +01:00
sys.exit("py2app not installed")
elif sys.platform == "win32":
try:
import py2exe
sys.argv += "py2exe",
2014-01-17 15:27:08 +01:00
options["options"] = {"py2exe": {"bundle_files": 1, "compressed": True}}
options["setup_requires"] += "py2exe",
except ImportError:
2014-01-17 15:27:08 +01:00
sys.exit("py2exe not installed")
else:
2014-01-17 15:27:08 +01:00
sys.exit("OS not supported")
2014-01-17 15:27:08 +01:00
setuptools.setup(**options)