projg2 / python-exec

Wrapper for multi-implementation install of Python scripts and executables
BSD 2-Clause "Simplified" License
13 stars 6 forks source link

python-exec suppresses script output #4

Closed fokoid closed 7 years ago

fokoid commented 7 years ago

I am trying to install the TensorFlow package for R. The build process involves running a Python script and on Gentoo, R automatically tries to run the script with python-exec. This causes the build to fail since it tries to parse the output of the script, but python-exec seems to suppress this output.

As a minimal example, running test.py:

print('Hello World!')

in python-exec:

alex@cizin ~ $ python-exec2c ./test.py
alex@cizin ~ $

Is this the desired behaviour? Is there any way to recover the output?

mgorny commented 7 years ago

This is not a valid use of python-exec2c. It doesn't suppress any output, it just doesn't run the script. If you look at $?, you'd notice it exited with 127 -- aka it doesn't find wrapped script to run.

fokoid commented 7 years ago

Sorry -- should have RTFM. Thanks for the help.