|
1 |
| -import setuptools |
2 |
| -from distutils.core import setup, Extension |
| 1 | +from setuptools import setup, Extension |
3 | 2 | import pkgconfig
|
4 | 3 | import numpy as np
|
5 | 4 |
|
|
8 | 7 | print("Numpy dir: ", np.get_include())
|
9 | 8 |
|
10 | 9 | mv_extractor = Extension('mv_extractor',
|
11 |
| - include_dirs = ['/home/ffmpeg_sources/ffmpeg', |
12 |
| - *d['include_dirs'], |
13 |
| - np.get_include()], |
14 |
| - library_dirs = d['library_dirs'], |
15 |
| - libraries = d['libraries'], |
16 |
| - sources = ['src/py_video_cap.cpp', |
17 |
| - 'src/video_cap.cpp', |
18 |
| - 'src/time_cvt.cpp', |
19 |
| - 'src/mat_to_ndarray.cpp'], |
20 |
| - extra_compile_args = ['-std=c++11'], |
21 |
| - extra_link_args = ['-fPIC', '-Wl,-Bsymbolic']) |
| 10 | + include_dirs = [ |
| 11 | + '/home/ffmpeg_sources/ffmpeg', |
| 12 | + *d['include_dirs'], |
| 13 | + np.get_include() |
| 14 | + ], |
| 15 | + library_dirs = d['library_dirs'], |
| 16 | + libraries = d['libraries'], |
| 17 | + sources = [ |
| 18 | + 'src/py_video_cap.cpp', |
| 19 | + 'src/video_cap.cpp', |
| 20 | + 'src/time_cvt.cpp', |
| 21 | + 'src/mat_to_ndarray.cpp' |
| 22 | + ], |
| 23 | + extra_compile_args = ['-std=c++11'], |
| 24 | + extra_link_args = ['-fPIC', '-Wl,-Bsymbolic']) |
22 | 25 |
|
23 | 26 | setup (name = 'mv_extractor',
|
24 |
| - version = '1.0.0.7', |
25 | 27 | author='Lukas Bommes',
|
26 | 28 | author_email=' ',
|
27 | 29 | license='MIT',
|
28 |
| - url='https://github.com/LukasBommes/mv_extractor', |
| 30 | + url='https://github.com/LukasBommes/mv-extractor', |
29 | 31 | description = ('Reads video frames and MPEG-4/H.264 motion vectors.'),
|
30 | 32 | keywords=['motion vector', 'video capture', 'mpeg4', 'h.264', 'compressed domain'],
|
31 | 33 | ext_modules = [mv_extractor],
|
32 |
| - python_requires='>=3.6, <3.8', |
33 |
| - setup_requires=['wheel==0.33.6', 'numpy>=1.17.0,<1.18'], |
| 34 | + packages = ['mv_extractor'], |
| 35 | + package_dir = {'mv_extractor': 'src'}, |
| 36 | + python_requires='>=3.6, <3.12', |
| 37 | + setup_requires=['wheel>=0.33.6', 'numpy>=1.17.0,<1.18'], |
34 | 38 | install_requires=['pkgconfig>=1.5.1,<1.6', 'numpy>=1.17.0,<1.18', 'opencv-python>=4.1.0.25,<4.2'])
|
0 commit comments