2 Star 10 Fork 0

沃富仁波切 / PyCameraListProject

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setup.py 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
沃富仁波切 提交于 2021-12-20 16:13 . init
#!/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", ["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='07jiangbin@163.com',
description='List all camera/audio sources for windows users.',
packages=find_packages(),
ext_modules=cythonize(extensions),
python_requires='>=3.6',
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiangbin2020/py-camera-list-project.git
git@gitee.com:jiangbin2020/py-camera-list-project.git
jiangbin2020
py-camera-list-project
PyCameraListProject
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891