-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (43 loc) · 1.15 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
from setuptools import setup
APP = ['src/main.py']
DATA_FILES = [
('models', ['models/inswapper_128.onnx', 'models/GFPGANv1.4.pth']),
('resources', ['resources/icon.icns'])
]
OPTIONS = {
'argv_emulation': True,
'packages': [
'cv2',
'numpy',
'insightface',
'onnxruntime',
'PyQt6',
'src'
],
'excludes': ['pytest', 'jaraco.path', '_typeshed'],
'iconfile': 'resources/icon.icns',
'plist': {
'CFBundleIdentifier': 'com.mlynnorg.macfaceswap',
'CFBundleName': 'MacFaceSwap',
'CFBundleDisplayName': 'MacFaceSwap',
'CFBundleShortVersionString': '1.0.0',
'CFBundleVersion': '1.0.0',
'LSMinimumSystemVersion': '10.15',
'NSHighResolutionCapable': True,
'NSCameraUsageDescription': 'MacFaceSwap needs access to your camera for face swapping functionality.',
}
}
setup(
app=APP,
name='MacFaceSwap',
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
install_requires=[
'opencv-python',
'numpy',
'insightface',
'onnxruntime-silicon',
'PyQt6'
]
)