From ec2ce0f6b0fe0b2d58e04b3b2d62ec231cc848db Mon Sep 17 00:00:00 2001 From: Holger Caesar Date: Mon, 17 Aug 2020 18:52:17 +0800 Subject: [PATCH] Fix requirements for new pip package --- setup/setup.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup/setup.py b/setup/setup.py index 46917734..990d9f74 100644 --- a/setup/setup.py +++ b/setup/setup.py @@ -5,8 +5,14 @@ with open('../README.md', 'r') as fh: long_description = fh.read() +# Since nuScenes 2.0 the requirements are stored in separate files. with open('requirements.txt') as f: - requirements = f.read().splitlines() + req_paths = f.read().splitlines() +requirements = [] +for req_path in req_paths: + req_path = req_path.replace('-r ', '') + with open(req_path) as f: + requirements += f.read().splitlines() def get_dirlist(_rootdir): @@ -33,7 +39,7 @@ def get_dirlist(_rootdir): name='nuscenes-devkit', version='1.1.0', author='Holger Caesar, Oscar Beijbom, Qiang Xu, Varun Bankiti, Alex H. Lang, Sourabh Vora, Venice Erin Liong, ' - 'Sergi Widjaja, Kiwoo Shin, Caglayan Dicle, Freddy Boulton, Whye Kit et al.', + 'Sergi Widjaja, Kiwoo Shin, Caglayan Dicle, Freddy Boulton, Whye Kit, Asha Asvathaman et al.', author_email='nuscenes@nutonomy.com', description='The official devkit of the nuScenes dataset (www.nuscenes.org).', long_description=long_description,