This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
executable file
·76 lines (71 loc) · 2.39 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/python3
#*coding: utf8 -*
APP = ["joliebulle/main.py"]
NAME = "Joliebulle"
VERSION = "3.7.3"
setup_info = dict(
name = NAME,
version = VERSION,
app = APP,
license='GPLv3',
options=dict(
py2app=dict(
iconfile='dist/Mac/bulle.icns',
plist=dict(
CFBundleName = NAME,
CFBundleShortVersionString = VERSION, # must be in X.X.X format
CFBundleGetInfoString = NAME + " " + VERSION,
CFBundleExecutable = NAME,
CFBundleIdentifier = "com.joliebulle",
),
argv_emulation=True,
includes=['sip', 'PyQt5','PyQt5.QtNetwork'],
),
),
description = "JolieBulle, logiciel de brassage libre",
author = "Pierre Tavares",
author_email = "contact.314r@gmail.com",
url = "http://joliebulle.tuxfamily.org",
package_data = {
"joliebulle":[
"*.py",
"*.qm",
"*.xml",
"*.json",
"Images/*.png",
"Samples/*.xml",
"*/*.py",
"*/*/*.py",
"static/beercalc/*",
"static/controllers/brewday/*",
"static/controllers/journal/*",
"static/controllers/recipe/*",
"static/controllers/recipes-lib/*",
"static/controllers/tools/*",
"static/css/*",
"static/bootstrap/LICENCE",
"static/bootstrap/css/*",
"static/bootstrap/js/*",
"static/font-awesome/css/*",
"static/font-awesome/fonts/*",
"static/jquery/*",
"static/angular/*",
"static/underscore/*",
"static/html/*"
]
},
setup_requires=['py2app'],
scripts = ["bin/joliebulle"],
iconfile='joliebulle/Images/bulle.png'
)
from sys import platform
if platform == 'darwin':
from setuptools import setup
setup_info['data_files'] = ["joliebulle/database.xml","joliebulle/mash.xml","joliebulle/journal.json", "dist/Mac/qt.conf"]
setup_info['data_files'] += ["joliebulle/static/"]
setup_info['data_files'] += ["joliebulle/"]
elif platform.startswith('linux'):
from distutils.core import setup
setup_info['packages'] = [ "joliebulle" ]
setup_info['data_files'] = [("applications", ["dist/Linux/joliebulle.desktop"])]
setup(**setup_info)