forked from DeepLabCut/DeepLabCut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (64 loc) · 2.22 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
DeepLabCut2.0-2.2 Toolbox (deeplabcut.org)
© A. & M. Mathis Labs
https://github.com/DeepLabCut/DeepLabCut
Please see AUTHORS for contributors.
https://github.com/DeepLabCut/DeepLabCut/blob/master/AUTHORS
Licensed under GNU Lesser General Public License v3.0
"""
import setuptools
import importlib
import platform
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as fr:
required = fr.read().splitlines()
if platform.machine() == "ppc64le":
conda_modules = ["cv2", "tensorflow", "imgaug"]
err = "Missing requirement {}. Please install it using conda"
for modname in conda_modules:
try:
importlib.import_module(modname)
except ModuleNotFoundError as exc:
raise ImportError(err.format(modname)) from exc
except Exception as exc:
raise exc
setuptools.setup(
name="deeplabcut",
version="2.2.0.6",
author="A. & M. Mathis Labs",
author_email="alexander@deeplabcut.org",
description="Markerless pose-estimation of user-defined features with deep learning",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/DeepLabCut/DeepLabCut",
install_requires=required,
extras_require={
"gui": ["wxpython<4.1"]
},
scripts=["deeplabcut/pose_estimation_tensorflow/models/pretrained/download.sh"],
packages=setuptools.find_packages(),
data_files=[
(
"deeplabcut",
[
"deeplabcut/pose_cfg.yaml",
"deeplabcut/inference_cfg.yaml",
"deeplabcut/pose_estimation_tensorflow/models/pretrained/pretrained_model_urls.yaml",
"deeplabcut/gui/media/logo.png",
"deeplabcut/gui/media/dlc_1-01.png",
],
)
],
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Operating System :: OS Independent",
],
entry_points="""[console_scripts]
dlc=dlc:main""",
)
# https://www.python.org/dev/peps/pep-0440/#compatible-release