Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-09-16 19:22:10 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-09-16 19:22:10 +0400
commit01747a9cf09f19ef8f0a1c18d178436c17e21bc6 (patch)
tree84d3b3740a7dba945cdfc1306f4e0e6aa1cb86e6 /build_files/build_environment
parent0732375d35a39aeb3ce1015804dfa320ff43b071 (diff)
Add --required-numpy to force compilation of both py3.3 and numpy1.7 in case you really need numpy and 1.7 is not available!
Diffstat (limited to 'build_files/build_environment')
-rwxr-xr-xbuild_files/build_environment/install_deps.sh58
1 files changed, 47 insertions, 11 deletions
diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh
index 2a59114b838..dd3a80e8747 100755
--- a/build_files/build_environment/install_deps.sh
+++ b/build_files/build_environment/install_deps.sh
@@ -166,7 +166,11 @@ ARGUMENTS_INFO="\"COMMAND LINE ARGUMENTS:
Unconditionally skip OpenCOLLADA installation/building.
--skip-ffmpeg
- Unconditionally skip FFMpeg installation/building.\""
+ Unconditionally skip FFMpeg installation/building.
+
+ --required-numpy
+ Use this in case your distro features a valid python package, but no matching Numpy one.
+ It will force compilation of both python 3.3 and numpy 1.7.\""
##### Main Vars #####
@@ -181,6 +185,7 @@ NUMPY_VERSION_MIN="1.7"
NUMPY_SOURCE="http://sourceforge.net/projects/numpy/files/NumPy/$NUMPY_VERSION/numpy-$NUMPY_VERSION.tar.gz"
NUMPY_FORCE_REBUILD=false
NUMPY_SKIP=false
+NUMPY_REQUIRED=false
BOOST_VERSION="1.51.0"
_boost_version_nodots=`echo "$BOOST_VERSION" | sed -r 's/\./_/g'`
@@ -397,6 +402,9 @@ while true; do
--skip-ffmpeg)
FFMPEG_SKIP=true; shift; continue
;;
+ --required-numpy)
+ NUMPY_REQUIRED=true; shift; continue
+ ;;
--)
# no more arguments to parse
break
@@ -1974,6 +1982,7 @@ install_DEB() {
if $PYTHON_SKIP; then
INFO "WARNING! Skipping Python installation, as requested..."
else
+ _do_compile=false
check_package_DEB python$PYTHON_VERSION_MIN-dev
if [ $? -eq 0 ]; then
install_packages_DEB python$PYTHON_VERSION_MIN-dev
@@ -1984,12 +1993,21 @@ install_DEB() {
check_package_DEB python$PYTHON_VERSION_MIN-numpy
if [ $? -eq 0 ]; then
install_packages_DEB python$PYTHON_VERSION_MIN-numpy
+ elif $NUMPY_REQUIRED; then
+ INFO "WARNING! Valid python package but no valid numpy package!"
+ INFO " Building both Python and Numpy from sources!"
+ _do_compile=true
else
- INFO "WARNING! Sorry, using python package but no numpy package available!"
+ INFO "WARNING! Sorry, using python package but no valid numpy package available!"
+ INFO " Use --required-numpy to force building of both Python and numpy."
fi
fi
clean_Python
else
+ _do_compile=true
+ fi
+
+ if $_do_compile; then
compile_Python
INFO ""
if $NUMPY_SKIP; then
@@ -2381,6 +2399,7 @@ install_RPM() {
if $PYTHON_SKIP; then
INFO "WARNING! Skipping Python installation, as requested..."
else
+ _do_compile=false
check_package_version_match_RPM python3-devel $PYTHON_VERSION_MIN
if [ $? -eq 0 ]; then
install_packages_RPM python3-devel
@@ -2391,12 +2410,21 @@ install_RPM() {
check_package_version_match_RPM python3-numpy $NUMPY_VERSION_MIN
if [ $? -eq 0 ]; then
install_packages_RPM python3-numpy
+ elif $NUMPY_REQUIRED; then
+ INFO "WARNING! Valid python package but no valid numpy package!"
+ INFO " Building both Python and Numpy from sources!"
+ _do_compile=true
else
- INFO "WARNING! Sorry, using python package but no numpy package available!"
+ INFO "WARNING! Sorry, using python package but no valid numpy package available!"
+ INFO " Use --required-numpy to force building of both Python and numpy."
fi
fi
clean_Python
else
+ _do_compile=true
+ fi
+
+ if $_do_compile; then
compile_Python
INFO ""
if $NUMPY_SKIP; then
@@ -2661,6 +2689,7 @@ install_ARCH() {
if $PYTHON_SKIP; then
INFO "WARNING! Skipping Python installation, as requested..."
else
+ _do_compile=false
check_package_version_ge_ARCH python $PYTHON_VERSION_MIN
if [ $? -eq 0 ]; then
install_packages_ARCH python
@@ -2672,21 +2701,28 @@ install_ARCH() {
check_package_version_ge_ARCH python-numpy $NUMPY_VERSION_MIN
if [ $? -eq 0 ]; then
install_packages_ARCH python-numpy
- else
- INFO "WARNING! Sorry, using python package but no numpy package available!"
+ elif $NUMPY_REQUIRED; then
+ INFO "WARNING! Valid python package but no valid numpy package!"
+ INFO " Building both Python and Numpy from sources!"
+ _do_compile=true
+ else
+ INFO "WARNING! Sorry, using python package but no valid numpy package available!"
+ INFO " Use --required-numpy to force building of both Python and numpy."
fi
fi
fi
clean_Python
else
+ _do_compile=true
+ fi
+
+ if $_do_compile; then
compile_Python
INFO ""
- if $WITH_NUMPY; then
- if $NUMPY_SKIP; then
- INFO "WARNING! Skipping NumPy installation, as requested..."
- else
- compile_Numpy
- fi
+ if $NUMPY_SKIP; then
+ INFO "WARNING! Skipping NumPy installation, as requested..."
+ else
+ compile_Numpy
fi
fi
fi