Maybe the issue is not the Python script but "cmake" instead...
Code:
root@pcbsd# python develop.py build
Error: run "develop.py cmake" first
root@pcbsd# python develop.py cmake
Running 'CXX=\'g++-4.1\' cmake -DCMAKE_BUILD_TYPE:STRING=RELWITHDEBINFO -G \'Unix Makefiles\' -DSERVER:BOOL=OFF -DVIEWER:BOOL=ON -DSTANDALONE:BOOL=OFF -DUNATTENDED:BOOL=OFF "" \'/root/hippo_source_v0.5.0/linden/indra\'' in 'viewer-linux-i386-relwithdebinfo'
-- The C compiler identification is GNU
CMake Error at /usr/local/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:30 (MESSAGE):
Could not find compiler set in environment variable CXX:
g++-4.1.
Call Stack (most recent call first):
CMakeLists.txt:16 (project)
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/root/hippo_source_v0.5.0/linden/indra/viewer-linux-i386-relwithdebinfo/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Cleaning 'viewer-linux-i386-relwithdebinfo'
Error: the command 'cmake' exited with status 1
root@pcbsd#