-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (21 loc) · 765 Bytes
/
setup.py
File metadata and controls
23 lines (21 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# setup.py
from setuptools import setup, find_packages
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text("utf-8")
setup(
name="ffmpegcv", # 应用名
version="0.3.18", # 版本号
packages=find_packages(include=["ffmpegcv*"]), # 包括在安装包内的 Python 包
author="chenxf",
author_email="cxf529125853@163.com",
url="https://github.com/chenxinfeng4/ffmpegcv",
long_description=long_description,
long_description_content_type="text/markdown",
# 添加依赖项
python_requires=">=3.6",
install_requires=[
"numpy",
],
extras_require={"cuda": ["pycuda"]}, # 定义一个名为cuda的可选依赖项,并指定pycuda
)