Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make core project installable via pip #217

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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("#")
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
)
Empty file added yolov6/__init__.py
Empty file.
Empty file added yolov6/core/__init__.py
Empty file.
Empty file added yolov6/data/__init__.py
Empty file.
Empty file added yolov6/layers/__init__.py
Empty file.
Empty file added yolov6/models/__init__.py
Empty file.
Empty file added yolov6/solver/__init__.py
Empty file.
Empty file added yolov6/utils/__init__.py
Empty file.