是否可以使用 setuptools工具安装不包含在pip中的 ffmpeg , fftw 或其他第三方软件包 / strong>?
说我有以下setup.py(用于通过pip分发python包) 如何从来源或可用发行版中安装ffmpeg和fftw(例如,通过Mac上的 brew安装,或通过Linux上的 apt-get安装)?
import os
import sys
from setuptools import setup
from setuptools import Command
# GLOBAL VARIABLES
REQUIRED = [
"numpy",
"scipy",
"matplotlib",
"xarray",
"netcdf4",
"h5py",
"psutil",
"sphinx_rtd_theme",
"tqdm",
"Sphinx",
"pyFFTW",
"ffmpeg",
"pytest",
]
EXTRAS = {
'docs': ['Sphinx==3.2.1', 'sphinx_rtd_theme'],
}
CWD = os.path.abspath(os.path.dirname(__file__))
# SETUP
setup(
name="...",
version="...",
description="...",
long_description="...",
author="...",
author_email="...",
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Intended Audience :: Science/Research',
],
keywords="...",
url="...",
license='MIT',
packages=["..."],
install_requires="...",
extras_require="...",
include_package_data=True,
zip_safe=False,
)