forked from joelibaceta/video-to-ascii
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (48 loc) · 1.61 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
43
44
45
46
47
48
49
50
51
import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
from setuptools.command.develop import develop
from setuptools.command.egg_info import egg_info
def install_package(package):
import pip
try:
from pip._internal import main
main.main(['install', package])
except AttributeError:
from pip import __main__
__main__._main(['install', package])
if "--with-audio" in sys.argv:
install_package('opencv-python')
install_package('pyaudio')
sys.argv.remove("--with-audio")
else:
install_package('opencv-python')
setup(
name="video_to_ascii",
version="1.3.0",
author="Joel Ibaceta",
author_email="[email protected]",
license='MIT',
description="It is a simple python package to play videos in the terminal",
long_description="A simple tool to play a video using ascii characters instead of pixels",
url="https://github.com/joelibaceta/video-to-ascii",
project_urls={
'Source': 'https://github.com/joelibaceta/video-to-ascii',
'Tracker': 'https://github.com/joelibaceta/video-to-ascii/issues'
},
packages=find_packages(),
include_package_data=True,
install_requires=['xtermcolor', 'ffmpeg-python'],
classifiers=[
"Programming Language :: Python :: 3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
keywords='video ascii terminal opencv',
entry_points={
"console_scripts": [
'video-to-ascii=video_to_ascii.cli:main'
]
}
)