|
16 | 16 | with open("README.md", "r") as fh: |
17 | 17 | long_description = fh.read() |
18 | 18 |
|
19 | | -install_requires = ['numpy', 'ruamel.yaml', 'colorcet', 'pillow', 'py-cpuinfo==5.0.0', 'tqdm'] |
| 19 | +install_requires = [ |
| 20 | + "numpy", |
| 21 | + "ruamel.yaml", |
| 22 | + "colorcet", |
| 23 | + "pillow", |
| 24 | + "py-cpuinfo==5.0.0", |
| 25 | + "tqdm", |
| 26 | +] |
20 | 27 |
|
21 | | -if find_spec('cv2') is None: |
22 | | - install_requires.append('opencv-python') |
23 | | -if (find_spec('tensorflow') is None): |
24 | | - warnings.warn("tensorflow is not yet installed. Installing tensorflow CPU version. if you wish to use the GPU version, please run: pip install tensorflow-gpu==1.13.1") |
25 | | - install_requires.append('tensorflow==1.13.1') |
26 | | -if 'tegra' in platform.platform(): |
27 | | - if (find_spec('pandas') is None): |
28 | | - warnings.warn("Not installing pandas or pytables (these can take forever on NVIDIA Jetson boards). Please install these packages if you want to use the benchmark_videos function to save poses from a video.") |
| 28 | +if find_spec("cv2") is None: |
| 29 | + install_requires.append("opencv-python") |
| 30 | +if find_spec("tensorflow") is None: |
| 31 | + warnings.warn( |
| 32 | + "tensorflow is not yet installed. Installing tensorflow CPU version. if you wish to use the GPU version, please run: pip install tensorflow-gpu==1.13.1" |
| 33 | + ) |
| 34 | + install_requires.append("tensorflow==1.13.1") |
| 35 | +if "tegra" in platform.platform(): |
| 36 | + if find_spec("pandas") is None: |
| 37 | + warnings.warn( |
| 38 | + "Not installing pandas or pytables (these can take forever on NVIDIA Jetson boards). Please install these packages if you want to use the benchmark_videos function to save poses from a video." |
| 39 | + ) |
29 | 40 | else: |
30 | | - install_requires.append('pandas') |
31 | | - install_requires.append('tables') |
| 41 | + install_requires.append("pandas") |
| 42 | + install_requires.append("tables") |
32 | 43 |
|
33 | 44 | setuptools.setup( |
34 | 45 | name="deeplabcut-live", |
|
39 | 50 | long_description=long_description, |
40 | 51 | long_description_content_type="text/markdown", |
41 | 52 | url="https://github.com/DeepLabCut/DeepLabCut-live", |
42 | | - python_requires = '>=3.5, <3.8', |
| 53 | + python_requires=">=3.5, <3.8", |
43 | 54 | install_requires=install_requires, |
44 | 55 | packages=setuptools.find_packages(), |
45 | 56 | include_package_data=True, |
|
48 | 59 | "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", |
49 | 60 | "Operating System :: OS Independent", |
50 | 61 | ), |
51 | | - entry_points = {'console_scripts' : ['dlc-live-bench=dlclive.bench:main', |
52 | | - 'dlc-live-benchmark=dlclive.benchmark:main']} |
| 62 | + entry_points={ |
| 63 | + "console_scripts": [ |
| 64 | + "dlc-live-test=check_install.check_install:main", |
| 65 | + "dlc-live-bench=dlclive.bench:main", |
| 66 | + "dlc-live-benchmark=dlclive.benchmark:main", |
| 67 | + ] |
| 68 | + }, |
53 | 69 | ) |
0 commit comments