Skip to content

Commit 376bb0e

Browse files
author
Vijay Vasudevan
committed
TensorFlow r0.7: change pip dependency for numpy to 1.10.1 on OS X
pip3 install numpy==1.8.2 results in failures to find Python.h during our wheel building process, and it appears to be a bug in numpy.distutils at 1.8.2.
1 parent 2b27e88 commit 376bb0e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tensorflow/tools/pip_package/setup.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import fnmatch
2121
import os
22+
import platform
2223
import re
2324
import sys
2425

@@ -28,8 +29,15 @@
2829

2930
_VERSION = '0.7.1'
3031

32+
numpy_version = "1.8.2"
33+
if platform.system() == "Darwin":
34+
# There are bugs with numpy pip installation on OS X prior to
35+
# 1.10.1, so on mac we require a higher version than on other
36+
# platforms.
37+
numpy_version = "1.10.1"
38+
3139
REQUIRED_PACKAGES = [
32-
'numpy >= 1.8.2',
40+
'numpy >= %s' % numpy_version,
3341
'six >= 1.10.0',
3442
'protobuf == 3.0.0b2',
3543
]

0 commit comments

Comments
 (0)