-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
32 lines (26 loc) · 1003 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
import subprocess
from setuptools import setup, find_packages
from setuptools.command.install import install
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
def load_requirements(file_name):
requirements = parse_requirements(file_name, session="test")
try:
return [str(item.req) for item in requirements]
except:
return [str(item.requirement) for item in requirements]
setup(
name="flopco-pytorch",
version="v0.1.4",
description="FLOPs and other statistics COunter for Pytorch neural networks",
author="Julia Gusak",
author_email="[email protected]",
url="https://github.com/juliagusak/flopco-pytorch",
download_url="https://github.com/juliagusak/flopco-pytorch/archive/v0.1.4.tar.gz",
keywords = ['pytorch', 'flops', 'macs', 'neural-networks', 'cnn'],
license="MIT",
packages=find_packages(),
install_requires=load_requirements("requirements.txt")
)