summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorJaime <jaime.frio@gmail.com>2015-11-07 21:00:01 +0100
committerJaime <jaime.frio@gmail.com>2015-11-07 21:00:01 +0100
commit694f628bb9bb0da4a05d279b22cdb0987e2b3203 (patch)
tree7017d8443b51a471af9098162ce415ac6dcfe507 /numpy/core/setup.py
parent3a41be170909854ff666828b76e0b6e065faf354 (diff)
parentdef49ba8fa3fe252c26c210d7730ed5c3a42c60e (diff)
downloadnumpy-694f628bb9bb0da4a05d279b22cdb0987e2b3203.tar.gz
Merge pull request #6649 from sieben/dict_litteral
MAINT: Dictionary litteral
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py15
1 files changed, 4 insertions, 11 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index aa9e03e06..2e9e277af 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -257,17 +257,10 @@ def check_types(config_cmd, ext, build_dir):
# Expected size (in number of bytes) for each type. This is an
# optimization: those are only hints, and an exhaustive search for the size
# is done if the hints are wrong.
- expected = {}
- expected['short'] = [2]
- expected['int'] = [4]
- expected['long'] = [8, 4]
- expected['float'] = [4]
- expected['double'] = [8]
- expected['long double'] = [16, 12, 8]
- expected['Py_intptr_t'] = [8, 4]
- expected['PY_LONG_LONG'] = [8]
- expected['long long'] = [8]
- expected['off_t'] = [8, 4]
+ expected = {'short': [2], 'int': [4], 'long': [8, 4],
+ 'float': [4], 'double': [8], 'long double': [16, 12, 8],
+ 'Py_intptr_t': [8, 4], 'PY_LONG_LONG': [8], 'long long': [8],
+ 'off_t': [8, 4]}
# Check we have the python header (-dev* packages on Linux)
result = config_cmd.check_header('Python.h')