onefang pushed a commit to branch master.

http://git.enlightenment.org/admin/devs.git/commit/?id=c2e7544913945472067547f1f0c1fe1e0bb874f3

commit c2e7544913945472067547f1f0c1fe1e0bb874f3
Author: David Walter Seikel <[email protected]>
Date:   Sun Nov 10 22:06:11 2013 +1000

    build_efl: More python fixes.
    
    Work around python path mysteriously vanishing in sudo.
    
    Remove install_headers, not sure where it came from, the python intsall 
docs don't mention it.
---
 developers/onefang/build_efl.lua | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/developers/onefang/build_efl.lua b/developers/onefang/build_efl.lua
index 08b8cc0..80d1c99 100755
--- a/developers/onefang/build_efl.lua
+++ b/developers/onefang/build_efl.lua
@@ -35,7 +35,6 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
 -- TODO - Might need more environment stuff for cmake EFL find functions?
--- TODO - Python builds still not working.  Some mysterious issue with the 
custom cython and sudo install.
 
 
 -- Read environment variables as if they were global variables.
@@ -155,7 +154,7 @@ local function build(i, package)
                if good then good = runBuildCommand(i, package, path, 'cd build 
&& sudo make PREFIX=' .. installPath .. ' install') end
            elseif fileExists(path .. '/setup.py') then
                if good then good = runBuildCommand(i, package, path, 'python 
setup.py build build_ext --include-dirs=$PYTHONINCLUDE') end
-               if good then good = runBuildCommand(i, package, path, 'sudo -E 
python setup.py install --prefix=' .. installPath .. ' install_headers 
--install-dir=$PYTHONINCLUDE') end
+               if good then good = runBuildCommand(i, package, path, 'sudo 
PYTHONPATH=' .. cythonPath .. ':$PYTHONPATH -E python setup.py install 
--prefix=' .. installPath) end
                good = false
            elseif fileExists(path .. '/Makefile') then         -- Keep this 
last, as others might generate this, so we want to detect those others first.
                if good then good = runBuildCommand(i, package, path, 'make 
PREFIX=' .. installPath .. ' -j' .. threads) end

-- 


Reply via email to