forked from jmdaweb/NVDARemoteServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_windows.py
40 lines (38 loc) · 1.12 KB
/
setup_windows.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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import py2exe
import platform
from glob import glob
def get_data():
if platform.architecture()[0][:2] == "32":
return [
("Microsoft.VC90.CRT", glob("windows/msvc32/Microsoft.VC90.CRT/*")),
("", ["windows/msvc32/openssl.exe", "windows/msvc32/openssl.cnf"])]
elif platform.architecture()[0][:2] == "64":
return [
("Microsoft.VC90.CRT", glob("windows/msvc64/Microsoft.VC90.CRT/*")),
("", ["windows/msvc64/openssl.exe", "windows/msvc64/openssl.cnf"])]
if __name__ == '__main__':
setup(
name = "NVDARemote server",
author = "Jose Manuel Delicado",
author_email = "[email protected]",
version = "1.9",
url = "https://github.com/jmdaweb/NVDARemoteServer",
data_files = get_data()+[("", ["server.pem", "windows/service_manager.cmd", "windows/debug.cmd", "windows/NVDARemoteCertificate.cmd", "NVDARemoteServer.conf"])],
options = {
'py2exe': {
'optimize':2,
'dll_excludes': ["CRYPT32.dll"],
'compressed': True
},
},
console = [
{
'script': 'server.py',
'dest_base': 'NVDARemoteServer',
}
],
install_requires = [
]
)