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
Add gr-satellites #87
Conversation
It's better to use pybombs than copy-paste (if we can use pybombs for others we should switch to that). The best pattern would be to finally add a recipe for starcoder in |
Yeah that sounds better. I guess we would also need our own recipe of gr-satellites since it depends on gnuradio when we want to make it depend on gnuradio-nogui. |
I think we can set |
This'll probably fail because gr-starcoder is in a subdirectory of starcoder repo. I tried skimming through the code and examples and I didn't see a way to specify a subdirectory. Do you know a good way of solving this? |
Hmm - I don't think it should matter since we set that actual subdirectory as a recipe path Does that cause issues? |
By the way, if you mean how would other users do it, I was thinking we'll probably need to make a separate |
I don't mean adding the recipe, I mean in the recipe gr-starcoder.lwr itself, I'm setting |
Ah - I think you can set these to https://github.com/gnuradio/pybombs/blob/master/pybombs/templates/cmake.lwt#L20 This seems to work ok.
|
Also actually when looking though these files, I realized that we use the normal |
build.gradle
Outdated
command """pybombs -vv config default_prefix gnuradio && \\ | ||
pybombs -vv -y recipes add-defaults && \\ | ||
pybombs -vv -y recipes add gr-starcoder ${project.file('gr-recipes')} && \\ | ||
pybombs -vv -y install gr-satellites |
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.
The prefix is already set up correctly so I don't think you need to call anything but install gr-satellites
here.
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.
Oh - I mean gr-starcoder
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.
So I actually get this warning without configuring the default prefix first.
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Cannot establish a prefix directory. This may cause issues down the line.
I still get an error with it but a different one right now..
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.
Oh I didn't npotice my typo, nvm
gr-recipes/gr-starcoder.lwr
Outdated
|
||
category: common | ||
depends: | ||
- gnuradio-nogui |
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.
gnuradio-nogui
is actually a prefix, it doesn't work here and isn't really needed I guess.
gr-recipes/gr-starcoder.lwr
Outdated
- gnuradio-nogui | ||
- gr-satellites | ||
description: Recipe for installing the Starcoder OOT | ||
config: |
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.
Remove this, the prefix is already set up correctly with gnuradio-nogui
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.
Do I remove the whole config? I still want to set pyconstruct to forceinstalled: true if possible
So it really doesn't seem like the prefix from setupPrefix is getting recognized in installGrStarcoder. If I try only |
Currently, we only need one block from this but I imagine we'll need more in the future. Not sure if it's better to do this or to copy and paste what we need like before. Wdyt?