diff options
Diffstat (limited to 'baserockimport/exts/python.find_deps')
-rwxr-xr-x | baserockimport/exts/python.find_deps | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/baserockimport/exts/python.find_deps b/baserockimport/exts/python.find_deps index 792405b..e765f07 100755 --- a/baserockimport/exts/python.find_deps +++ b/baserockimport/exts/python.find_deps @@ -328,13 +328,17 @@ def find_runtime_deps(source, name, version=None, use_requirements_file=False): return runtime_deps def main(argv): - if len(argv) not in [3, 4]: - print('usage: %s PACKAGE_SOURCE_DIR NAME [VERSION]' % argv[0]) + if len(argv) not in [3, 4, 5]: + print('usage: %s PACKAGE_SOURCE_DIR NAME [VERSION] [local_data_path]' + % argv[0]) sys.exit(1) logging.debug('%s: argv[1:]: %s' % (argv[0], argv[1:])) source, name = argv[1:3] version = argv[3] if len(argv) == 4 else None + local_data_path = argv[4] if len(argv) == 5 else None + + logging.debug('local_data_path find_deps: %s\n', local_data_path) client = xmlrpclib.ServerProxy(PYPI_URL) new_name = name_or_closest(client, name) |