-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·42 lines (37 loc) · 1.33 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
import os
import sys
from pathlib import Path
from setuptools import find_packages, setup
install_packages = ["numpy"]
if os.name == "nt" and "[GCC" not in sys.version:
install_packages.append("pywin32")
libs = ["ffms2.dll", "ffms2.lib", "ffmsindex.exe"]
data_libs = []
if set(["bdist_wheel", "--plat-name", "win_amd64"]) <= set(sys.argv) or (
os.name == "nt" and all([os.path.exists(f) for f in libs])
):
data_libs = [("Scripts", libs)]
setup(
author="spirit",
author_email="[email protected]",
name="ffms2",
version="0.4.5.6",
description="Bindings for FFmpegSource",
long_description=(Path(__file__).parent / "README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/bubblesub/pyffms2",
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
data_files=data_libs,
python_requires=">=3.7",
packages=find_packages(),
package_dir={"ffms2": "ffms2"},
package_data={"ffms2": ["data/*", "../COPYING.LESSER"]},
install_requires=install_packages,
)