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 recipe for SonicParanoid 1.0.13 #11271
Conversation
salvoc81
commented
Oct 9, 2018
- I have read the guidelines for bioconda recipes.
- This PR adds a new recipe.
- AFAIK, this recipe is directly relevant to the biological sciences (otherwise, please submit to the more general purpose conda-forge channel).
- This PR updates an existing recipe.
- This PR does something else (explain below).
I am not sure what is causing the problem. If I remove the compiler() function it builds correctly on both linux and osx using the default conda-build coming with anaconda. |
@salvoc81 , your syntax for the compiler is wrong, and therefore the error. For C compiler you should use {{ compiler('c') }} and for C++, {{ compiler('cxx') }}. For more information on the compilers, please look at https://conda.io/docs/user-guide/tasks/build-packages/compiler-tools.html. |
@salvoc81 , as you can see, adding "cxx" fixed your initial error, but you are getting another one now, "conda_build.exceptions.CondaBuildException: Empty package". Considering this, there are few issues with your recipe.
You can use this recipe for start, https://github.com/bioconda/bioconda-recipes/blob/bc656c004ca3399595959403ca1870e83ac1e50b/recipes/rseqc/meta.yaml, and you can always search the repo for other examples as well. |
Thanks a lot for your help @npavlovikj . The build under Linux seems successful although now it is failing in mulled-build saying that there is no gcc installed in the system Regarding your comments:
Do you mean
Yes, the build is supposed to generate 4 executables, one of which is named "sonicparanoid"
Done correctly, I hope
|
@salvoc81 , if you look at the Linux and OSX logs, you will see that nothing was built: The build number should be 0 since there is not package available for "SonicParanoid" yet. If there is a package publicly available and you want to modify the current version, then you increment the build number to 1, etc. If your are building new version of "SonicParanoid", then you start from build number 0 again. Can you please set the build number to 0 and try again? |
I see, that is way it was also working locally :( |
@salvoc81 , when I test the updated recipe locally, I am getting the following errors: File "/opt/conda/conda-bld/sonicparanoid_1539226107544/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/sonicparanoid/process_output.py", line 47 File "/opt/conda/conda-bld/sonicparanoid_1539226107544/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/sonicparanoid/ortholog_detection.py", line 3394 File "/opt/conda/conda-bld/sonicparanoid_1539226107544/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/sonicparanoid/mmseqs_parser_cython.py", line 79 File "/opt/conda/conda-bld/sonicparanoid_1539226107544/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/sonicparanoid/sonic_paranoid_extract.py", line 29 File "lib/python3.5/site-packages/sonicparanoid/mmseqs_parser_cython.py", line 79 File "lib/python3.5/site-packages/sonicparanoid/process_output.py", line 47 File "lib/python3.5/site-packages/sonicparanoid/ortholog_detection.py", line 3394 File "lib/python3.5/site-packages/sonicparanoid/sonic_paranoid_extract.py", line 29 Do you have any idea why? @npavlovikj |
Hello @npavlovikj . Basically now it fails during the tests. Thanks a lot for all your help! |
@salvoc81 , ideally, there should be a conda package for every dependency required. That way, you don't build the dependencies within the package, but add the appropriate conda package in the "run" section. Is "mmseqs2" the program you are talking about? If that is the case, there is already an existing conda package, https://anaconda.org/bioconda/mmseqs2, you can add in the "run" section. EDIT: Ah, I see the new package is "quick_multi_paranoid". I would say go ahead and create a different recipe for it. If it is part of the "sonicparanoid" folder, you can use the same "url" and "sha256", just build only "qp" and "qa". @npavlovikj 👍 Right, that is what I was about to write... EDIT: I have checked again and it might be possible to solve it writing another formula for it. |
Hello @npavlovikj and thanks a lot for your help. In the I just solved the problem by adding a class that builds the source code inside the setup.py. |
I am glad to help @salvoc81 , and I am glad you made the recipe work :) |