-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (55 loc) · 1.6 KB
/
setup.py
File metadata and controls
61 lines (55 loc) · 1.6 KB
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
from cx_Freeze import setup, Executable
import os
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages=[], excludes=[])
import sys
base = 'Win32GUI' if sys.platform == 'win32' else None
options = {
'build_exe': {
'include_files': [
'templates',
'icons',
'products.csv',
'configs',
os.path.join(sys.base_prefix, 'DLLs', 'sqlite3.dll'),
os.path.join(sys.base_prefix, 'DLLs', 'tk86t.dll'),
os.path.join(sys.base_prefix, 'DLLs', 'tcl86t.dll'),
],
'includes': ['PyQt5'],
'packages': [
#'PyQt5',
#'PyQt5.QtGui',
#'PyQt5.QtWidgets',
#'PyQt5.QtCore',
],
'excludes': [
'django',
'Image',
'PyQt5.Qt',
],
'bin_excludes': [
'.gitattributes',
'.gitignore',
],
},
#'bdist_msi': bdist_msi_options,
}
executables = [
Executable(
script='cash.py',
base=base,
icon="icons/cash.ico"
)
]
install_requires = ['https://github.com/francescpuig7/InvoiceGenerator/archive/master.zip',]
# Si no funciona, descarregar-lo, pip install -e . i descomentar la seguent linea
#install_requires = ['InvoiceGenerator-master']
setup(name='cash',
version='1.2.1',
description='A cash program for a bars and restaurants',
#options = dict(build_exe = buildOptions),
options=options,
executables=executables,
install_requires=install_requires,
author='Francesc Puig')