-
Notifications
You must be signed in to change notification settings - Fork 242
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
Added the ability to pass arguments to as a string #726
base: master
Are you sure you want to change the base?
Changes from 5 commits
8cc6e13
f5d7714
269fcfa
25166ac
46fba4e
e902608
4691f18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1365,7 +1365,8 @@ def build(self): | |
if ctx.use_pbzip2: | ||
logger.info("Using pbzip2 to decompress bzip2 data") | ||
|
||
build_recipes(args.recipe, ctx) | ||
recipe = ' '.join(args.recipe).replace(',', '').replace(' ', ' ').split() | ||
build_recipes(recipe, ctx) | ||
|
||
def recipes(self): | ||
parser = argparse.ArgumentParser( | ||
|
@@ -1511,7 +1512,8 @@ def pip3(self): | |
self.pip() | ||
|
||
def pip(self): | ||
_pip(sys.argv[2:]) | ||
args = ' '.join(sys.argv[2:]).replace(',', '').replace(' ', ' ').split() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Why not using a (Maybe we want to document it?) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hm, yes, it must be documented |
||
_pip(args) | ||
|
||
def launchimage(self): | ||
from .tools.external import xcassets | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy and effective, but looks quite hacky and I don't feel super-confident about merging it. (And should be handled on the argparser side instead)
How about an argument
-r
or--requirement
which parses arequirements.txt
file aspip
does ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, why not, I'll try to implement