Skip to content

Commit

Permalink
add --skip-pip option to generators/debian/generate_cmd.py, for bloom…
Browse files Browse the repository at this point in the history
…-generate rosdebian
  • Loading branch information
k-okada committed Aug 16, 2024
1 parent 1f42d34 commit 77a8911
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bloom/generators/debian/generate_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def prepare_arguments(parser):
help="path to or containing the package.xml of a package")
action = parser.add_mutually_exclusive_group(required=False)
add = action.add_argument
add('--skip-pip', default=False, action='store_true', help="skip all pip rosdep keys")
add('--place-template-files', action='store_true',
help="places debian/* template files only")
add('--process-template-files', action='store_true',
Expand Down Expand Up @@ -107,6 +108,8 @@ def main(args=None, get_subs_fn=None):
os_data = create_default_installer_context().get_os_name_and_version()
os_name, os_version = os_data
ros_distro = os.environ.get('ROS_DISTRO', 'indigo')
if args.skip_pip:
os.environ['BLOOM_SKIP_PIP'] = '1'

# Allow args overrides
os_name = args.os_name or os_name
Expand Down
3 changes: 3 additions & 0 deletions bloom/generators/rpm/generate_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def prepare_arguments(parser):
help="path to or containing the package.xml of a package")
action = parser.add_mutually_exclusive_group(required=False)
add = action.add_argument
add('--skip-pip', default=False, action='store_true', help="skip all pip rosdep keys")
add('--place-template-files', action='store_true',
help="places rpm/* template file(s) only")
add('--process-template-files', action='store_true',
Expand Down Expand Up @@ -107,6 +108,8 @@ def main(args=None, get_subs_fn=None):
os_data = create_default_installer_context().get_os_name_and_version()
os_name, os_version = os_data
ros_distro = os.environ.get('ROS_DISTRO', 'indigo')
if args.skip_pip:
os.environ['BLOOM_SKIP_PIP'] = '1'

# Allow args overrides
os_name = args.os_name or os_name
Expand Down

0 comments on commit 77a8911

Please sign in to comment.