-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
29 lines (25 loc) · 958 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
#!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
def parse_requirements(filename):
with open(filename, "r") as file:
lines = (line.strip() for line in file)
return [line for line in lines if line and not line.startswith("#")]
reqs = parse_requirements("requirements.txt")
dep_links = [url for url in reqs if "http" in url]
reqs = [req for req in reqs if "http" not in req]
reqs += [url.split("egg=")[-1] for url in dep_links if "egg=" in url]
setup(
name='bb_behavior',
version='0.2',
description='BeesBook trajectory, image, and behavior analysis',
author='David Dormagen',
author_email='[email protected]',
url='https://github.com/BioroboticsLab/bb_behavior/',
install_requires=reqs,
dependency_links=dep_links,
packages=find_packages(),
package_dir={'bb_behavior': 'bb_behavior/'}
)