Skip to content

Add an optional flag --no-requirements to update command #730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 15, 2018

Conversation

SamCHogg
Copy link

@SamCHogg SamCHogg commented Aug 6, 2018

This PR adds an optional flag --no-requirements to the update command. The default behaviour stays the same, but when the flag is enabled it will no longer check for and install missing python requirements.

@theotherjimmy
Copy link
Contributor

@SamCHogg Could you also include this --no-requirements on any other command that runs pip install?

  • new
  • import
  • add
  • deploy

@SamCHogg
Copy link
Author

SamCHogg commented Aug 7, 2018

@theotherjimmy Done

mbed/mbed.py Outdated
hidden_aliases=['ad'],
help='Add library from URL',
description=(
"Adds mbed library and its dependencies from a source control based URL\n"
"(GitHub, Bitbucket, mbed.org) into an existing program.\n"
"Use \"mbed import <URL>\" to import as a program"))
def add(url, path=None, ignore=False, depth=None, protocol=None, insecure=False, offline=False, top=True):
def add(url, path=None, ignore=False, depth=None, protocol=None, insecure=False, offline=False, no_requirements=False, top=True):

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove this whitespace change?

@theotherjimmy
Copy link
Contributor

@screamerbg Any hesitation with merging this?

(I'm aware that you're away all week. We can wait to merge this if you don't have time to review it)

@theotherjimmy theotherjimmy merged commit 59c57db into ARMmbed:master Aug 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants