forked from pythonarcade/pyglet-ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (41 loc) · 1.46 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
from codecs import open
from os import path
from setuptools import setup, find_packages
from wheel.bdist_wheel import bdist_wheel
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
plat_pkg_data = {
'win_amd64': ['Win64/*.dll'],
'win32': ['Win32/*.dll'],
'macosx_10_5_x86_64': ['MacOS/*.dylib'],
'manylinux1_x86_64': ['linux_x86_64/*.so.*.*.*'],
'linux-armv7l': ['RPi/*.so.*.*.*'],
}
class _bdist_wheels(bdist_wheel):
def finalize_options(self):
super().finalize_options()
pkg_data = plat_pkg_data[self.plat_name]
self.distribution.package_data = {'pyglet_ffmpeg2': pkg_data}
setup(
cmdclass={'bdist_wheel': _bdist_wheels},
name='pyglet_ffmpeg2',
version='0.1.14',
description='Platform wheels with ffmpeg binaries and ctypes for pyglet',
long_description=long_description,
url='https://github.com/pythonarcade/pyglet-ffmpeg',
author='Paul Craven',
author_email='[email protected]',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Documentation',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.6',
],
keywords='pyglet ffmpeg audio arcade',
packages=find_packages(exclude=['docs', 'tests']),
install_requires=[
'pyglet >= 1.4.4',
],
)