-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
52 lines (48 loc) · 1.11 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
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
import sys
import os
sys.setrecursionlimit(1500)
APP = ['main.py']
DATA_FILES = []
for folder in ['src', 'ckpt']:
for root, dirs, files in os.walk(folder):
for file in files:
DATA_FILES.append((root, [os.path.join(root, file)]))
print(DATA_FILES)
OPTIONS = {
'argv_emulation': False,
'iconfile': 'src/ui/images/icon1.icns',
'packages': [
'matplotlib',
'mne',
'numpy',
'p_tqdm',
'pandas',
'openpyxl',
'pyqt5', # Uncomment this if PyQt5 is a dependency
#'PyQt5_sip',
'pyqtgraph',
'scipy',
#'scikit-image',
# 'torch',
# 'torchvision',
'xy'
"chardet",
'tqdm',
'ctypes'
],
'includes': ['liblzma'],
#'frameworks': ['/Users/yipengzhang/miniconda3/lib/liblzma.5.dylib'],
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
install_requires=['torch','torchvision'],
)