-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
35 lines (29 loc) · 1.12 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
#!/usr/bin/env python
# coding=utf-8
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
from PyCameraList import __version__
# import eigency
extensions = [
Extension("PyCameraList.camera_device", [r"PyCameraList\camera_device.pyx"]),
]
LIB_NAMES = ['quartz', 'strmiids', "kernel32", "user32", "gdi32", "winspool", "comdlg32", "advapi32", "shell32",
"ole32", "oleaut32", "uuid", "odbc32", "odbccp32", "comsuppw"]
LIB_DIRS = [] # C:\Program Files (x86)\Windows Kits\10\Lib\10.0.17763.0\um\x64
for ext in extensions:
ext.include_dirs = ["."] # + eigency.get_includes()
ext.libraries = LIB_NAMES
ext.library_dirs = LIB_DIRS
ext.language = "c++"
ext.cython_directives = {'language_level': "3"} # all are Python-3
ext.define_macros = [("_ENABLE_EXTENDED_ALIGNED_STORAGE", None)]
setup(
name='PyCameraList',
version=__version__,
author='Peter Jiang',
email='[email protected]',
description='List all camera/audio sources for windows users.',
packages=find_packages(),
ext_modules=cythonize(extensions),
python_requires='>=3.6',
)