forked from 104H/HH---POS-Accounting-and-ERP-Software
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (62 loc) · 1.82 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
from distutils.core import setup
from cx_Freeze import setup, Executable
import os
'''
setup(name='HH',
version='0.0',
packages=find_packages('sample'),
install_requires=['pyinvoice', 'wxPython', 'pymysql'],
package_data={'db':['data/db.txt'],},
entry_points={
'gui_scripts': [
'sample = sample.__main__:main'
]
},
include_package_data=True,
)
'''
'''
base = None
if sys.platform == "win32":
base = "Win32GUI"
'''
build_exe_options = {"packages": ["wx",
"pyinvoice",
"pymysql",
"escpos",
"usb",
"serial",
"qrcode", "hh/loginScreen"], "excludes": ["tkinter"]}
#base = "Win32GUI"
execs = []
for filename in os.listdir("hh"):
if filename.endswith(".py"):
execs.append(Executable('hh/'+filename))
setup(
name='HH',
version='0.1.1',
author='Hunaid Hameed',
author_email='[email protected]',
packages=['hh'],
#packages=['hh', 'pyinvoice', 'wx', 'pymysql'],
#package_dir = {'pyinvoice' : '/usr/lib/python3.6/site-packages/PyInvoice-0.1.0-py3.6.egg', 'wx' : '/usr/lib/python3.6/site-packages/wx', 'pymysql' : '/usr/lib/python3.6/site-packages/pymysql'},
#scripts=['bin/stowe-towels.py','bin/wash-towels.py'],
url='github.com/HH95/Open-Source-Python-POS-and-Accounting-Software/',
license='LICENSE.txt',
description='Open Source POS, Accouting and ERP System for small to medium business needs',
long_description=open('README.txt').read(),
package_data={'hh':['data/db.txt', 'data/recieptInfo.txt']},
options = {"build_exe": build_exe_options},
executables = execs,
requires=[
"wxPython",
"PyInvoice",
"PyMySQL",
"escpos",
"usb",
"pyusb",
"serial",
"qrcode",
"paramiko"
]
)