setup.pye (270B)
1 from setuptools import setup 2 import configparser 3 import os 4 5 requirements = [] 6 f = open('requirements.txt', 'r') 7 while True: 8 l = f.readline() 9 if l == '': 10 break 11 requirements.append(l.rstrip()) 12 f.close() 13 14 setup( 15 install_requires=requirements, 16 )