File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1818"""
1919Python bindings for MLlib.
2020"""
21+
22+ # MLlib currently needs Python 2.7+ and NumPy 1.7+, so complain if lower
23+
24+ import sys
25+ if sys .version_info [0 :2 ] < (2 , 7 ):
26+ raise Exception ("MLlib requires Python 2.7+" )
27+
28+ import numpy
29+ if numpy .version .version < '1.7' :
30+ raise Exception ("MLlib requires NumPy 1.7+" )
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ run_test "-m doctest pyspark/broadcast.py"
4040run_test " -m doctest pyspark/accumulators.py"
4141run_test " -m doctest pyspark/serializers.py"
4242run_test " pyspark/tests.py"
43- # run_test "pyspark/mllib/_common.py"
44- # run_test "pyspark/mllib/classification.py"
45- # run_test "pyspark/mllib/clustering.py"
46- # run_test "pyspark/mllib/recommendation.py"
47- # run_test "pyspark/mllib/regression.py"
43+ run_test " pyspark/mllib/_common.py"
44+ run_test " pyspark/mllib/classification.py"
45+ run_test " pyspark/mllib/clustering.py"
46+ run_test " pyspark/mllib/recommendation.py"
47+ run_test " pyspark/mllib/regression.py"
4848
4949if [[ $FAILED != 0 ]]; then
5050 echo -en " \033[31m" # Red
You can’t perform that action at this time.
0 commit comments