chmod a+x setup.py
fi
+# patch setup.py for libraries path
+if test `uname -m` = "x86_64" ; then
+ sed -e "s%^library_dirs_list[[:space:]]*=[[:space:]]*\[\(.*\)\]%library_dirs_list = [\1, '/usr/lib64']%g" \
+ -e "s%^libraries_list[[:space:]]*=[[:space:]]*\[\(.*\)'g2c'\]%libraries_list = [\1]%g;s%,[[:space:]]*\]%]%g" \
+ setup.py > _setup.py
+ mv _setup.py setup.py
+else
+ sed -e "s%^library_dirs_list[[:space:]]*=[[:space:]]*\[\(.*\)\]%library_dirs_list = [\1, '/usr/lib']%g"
+ -e "s%^libraries_list[[:space:]]*=[[:space:]]*\[\(.*\)'g2c'\]%libraries_list = [\1]%g;s%,[[:space:]]*\]%]%g" \
+ setup.py > _setup.py
+ mv _setup.py setup.py
+fi
+
check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR}
if test `uname -m` = "x86_64" ; then