Skip to content
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

[build] cmake does not check that python[3] is a required dependency #141

Open
picca opened this issue Oct 8, 2017 · 1 comment
Open

Comments

@picca
Copy link

picca commented Oct 8, 2017

Hello,

while preparing the debian package, I got htis error message

I now need python for the build.

is it possible to switch to python3 by default ?

make[3]: Entering directory '/<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu'
[ 94%] Generating burst backprojection kernels
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && /usr/bin/cmake -E copy /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/src/kernels/tools/make_burst_kernels.py tools/make_burst_kernels.py
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && /usr/bin/cmake -E copy /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/src/kernels/templates/common.in templates/common.in
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && /usr/bin/cmake -E copy /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/src/kernels/templates/definitions.in templates/definitions.in
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && /usr/bin/cmake -E copy /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/src/kernels/templates/z_template.in templates/z_template.in
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && /usr/bin/cmake -E copy /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/src/kernels/templates/center_template.in templates/center_template.in
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && /usr/bin/cmake -E copy /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/src/kernels/templates/lamino_template.in templates/lamino_template.in
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && /usr/bin/cmake -E copy /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/src/kernels/templates/roll_template.in templates/roll_template.in
cd /<<BUILDDIR>>/ufo-filters-0.14.0+dfsg1/obj-i686-linux-gnu/src/kernels && python tools/make_burst_kernels.py templates/z_template.in 1 2 4 8 16 > z_kernel.cl
/bin/sh: 1: python: not found
src/kernels/CMakeFiles/burst.dir/build.make:72: recipe for target 'src/kernels/z_kernel.cl' failed
@matze
Copy link
Contributor

matze commented Oct 9, 2017

I now need python for the build.

Sorry, yes. We use a Python script to generate OpenCL kernels for laminographic reconstruction. I now added

is it possible to switch to python3 by default ?

I don't think this is the best solution just as with ufo-core because it will break builds on platforms without Python 3. I now look up whichever Python is active, so if Python 3 is it in your case it should work as well.

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

No branches or pull requests

2 participants