39 lines
859 B
Python
39 lines
859 B
Python
import sys
|
|
import setuptools
|
|
|
|
options = {
|
|
"name": "Dropchat",
|
|
"version": "1.0",
|
|
"description": "Chat with dropbox.",
|
|
"author": "Rnhmjoj",
|
|
"author_email": "micheleguerinirocco@me.com",
|
|
"license": "MIT-GPL",
|
|
"app": ["dropchat.py"],
|
|
"data_files": ["prefs.json"],
|
|
"options": {},
|
|
"setup_requires": [],
|
|
}
|
|
|
|
if sys.platform == "darwin":
|
|
try:
|
|
import py2app
|
|
sys.argv += "py2app",
|
|
options["options"] = {"py2app": {"argv_emulation": False}}
|
|
options["setup_requires"] += "py2app",
|
|
except ImportError:
|
|
sys.exit("py2app not installed")
|
|
|
|
elif sys.platform == "win32":
|
|
try:
|
|
import py2exe
|
|
sys.argv += "py2exe",
|
|
options["options"] = {"py2exe": {"bundle_files": 1, "compressed": True}}
|
|
options["setup_requires"] += "py2exe",
|
|
except ImportError:
|
|
sys.exit("py2exe not installed")
|
|
|
|
else:
|
|
sys.exit("OS not supported")
|
|
|
|
setuptools.setup(**options)
|