-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-build.py
58 lines (54 loc) · 1.68 KB
/
setup-build.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
#!/bin/env python
from distutils.core import setup
# noinspection PyPackageRequirements
import py2exe, sys, os
if sys.platform == 'darwin':
# noinspection PyPackageRequirements
import py2app
elif sys.platform == 'win32':
# noinspection PyPackageRequirements
import py2exe
_PYSIDEDIR = r'C:\Python27\Lib\site-packages\PySide'
data_files =[('imageformats',[os.path.join(_PYSIDEDIR,'plugins\imageformats\qico4.dll')]),
('imageformats',[os.path.join(_PYSIDEDIR,'plugins\imageformats\qjpeg4.dll')]),
('.',[os.path.join(_PYSIDEDIR,'shiboken-python2.7.dll'),
os.path.join(_PYSIDEDIR,'QtCore4.dll'),
os.path.join(_PYSIDEDIR,'QtGui4.dll'),
os.path.join(_PYSIDEDIR,'QtNetwork4.dll')]),
'cacert.pem'
]
setup(
name = 'SmartFile',
version = "0.24",
description = 'SmartFile Desktop Sync',
author = 'Travis Cunningham',
author_email='[email protected]',
url = 'http://www.kissync.com',
license='MIT',
install_requires=[
'coverage',
'coveralls',
'oauthlib',
'keyring',
'pathtools',
'python-librsync',
'requests',
'requests-oauthlib',
'smartfile',
'tendo',
'watchdog',
'wsgiref'
],
data_files=data_files,
options={
"py2exe":{
'dll_excludes':['MSVCP90.dll'],
'includes': ['PySide.QtNetwork'],
}},
windows = [{
'script': 'main.py',
'icon_resources': [(1, "ui/images/icon.ico")],
'dest_base': 'main'
}],
)
os.rename('dist/main.exe','dist/SmartFile.exe')