forked from meituan/YOLOv6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (31 loc) · 905 Bytes
/
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
from setuptools import setup, find_packages
import os
# collect requirements from requirements.txt
lib_dir = os.path.dirname(os.path.realpath(__file__))
requirements_path = lib_dir + "/requirements.txt"
install_requires = []
if os.path.isfile(requirements_path):
with open(requirements_path) as f:
install_requires = f.read().splitlines()
# remove comments
_install_requires = []
for req in install_requires:
idx = req.find("#")
if idx == -1:
_install_requires.append(req)
else:
req = req[:idx]
if req:
_install_requires.append(req)
install_requires = _install_requires
setup(
name='yolov6',
version='0.1.0',
packages=find_packages(),
url='https://github.com/meituan/YOLOv6',
license='GNU General Public License v3.0',
author='meituan',
author_email='',
description='',
install_requires=install_requires
)