conda recipe generator

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

conda recipe generator

Edoardo Pasca
Hi everyone, 

we switched the build of some packages with conda-build.

Ideally I'd like to have CMake setting up the conda recipe. 

Is there something like a conda recipe generator?
If not, how do I proceed?
A lot of configure_file I presume?

Thanks for any suggestions

Edo


--
Edo
I know you think you understand what you thought I said, but I'm not sure you realize that what you heard is not what I meant (prob. Alan Greenspan)
:wq

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: conda recipe generator

CMake mailing list
I am not sure it makes sense to generate a conda-recipe. You could have it a
generate the meta.yaml file, but whats the point as you already got the source
code and running cmake?

Also, for the `build.sh` scripts, it should always be the same for every cmake
project, something like:

mkdir build
cd build
cmake -G $CMAKE_GENERATOR -DCMAKE_INSTALL_PREFIX=$PREFIX
-DCMAKE_BUILD_TYPE=Release $SRC_DIR
cmake --build .
cmake --build . --target install

Changing dollar sign variables to percent variables, this should work for
windows as well.
Ideally, it would be nice if an attribute could be added to the `meta.yaml`
file to tell it to use the standard cmake installation instead of copying the
same build scripts over and over.

Also, if your dependencies are mainly using cmake, you could look into using
`cget` which does package management using the standard cmake installation,
and it can even handle cross-compilation fairly easily as well.


On Thu, 2017-10-19 at 16:53 +0100, Edoardo Pasca wrote:

> Hi everyone, 
>
> we switched the build of some packages with conda-build.
>
> Ideally I'd like to have CMake setting up the conda recipe. 
>
> Is there something like a conda recipe generator?
> If not, how do I proceed?
> A lot of configure_file I presume?
>
> Thanks for any suggestions
>
> Edo
>
>
> -- 
> Edo
> I know you think you understand what you thought I said, but I'm not sure
> you realize that what you heard is not what I meant (prob. Alan Greenspan)
> :wq
> -- 
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.o
> rg/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensourc
> e/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake