diff options
| author | Alex Willmer <alex@moreati.org.uk> | 2015-08-05 17:21:33 +0100 |
|---|---|---|
| committer | Alex Willmer <alex@moreati.org.uk> | 2015-08-05 17:21:33 +0100 |
| commit | ff668ba0d7652c12b28a6b6f9dbb3b581a383833 (patch) | |
| tree | 7a4033c5be2deefac3812c7a221d8c9a741454e4 /numpy | |
| parent | f179ec92d8ddb0dc5f7445255022be5c4765a704 (diff) | |
| download | numpy-ff668ba0d7652c12b28a6b6f9dbb3b581a383833.tar.gz | |
BLD: Move numpy.build_utils -> numpy._build_utils, add to MANIFEST.in
This fixes the distutils built from an sdist (e.g. under tox),
without including _build_utils in binary distributions or the installed numpy.
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/_build_utils/__init__.py (renamed from numpy/build_utils/__init__.py) | 0 | ||||
| -rw-r--r-- | numpy/_build_utils/apple_accelerate.py (renamed from numpy/build_utils/apple_accelerate.py) | 0 | ||||
| -rw-r--r-- | numpy/_build_utils/common.py (renamed from numpy/build_utils/common.py) | 0 | ||||
| -rw-r--r-- | numpy/_build_utils/src/apple_sgemv_fix.c (renamed from numpy/build_utils/src/apple_sgemv_fix.c) | 0 | ||||
| -rw-r--r-- | numpy/_build_utils/waf.py (renamed from numpy/build_utils/waf.py) | 0 | ||||
| -rw-r--r-- | numpy/bento.info | 2 | ||||
| -rw-r--r-- | numpy/core/bscript | 26 | ||||
| -rw-r--r-- | numpy/core/setup.py | 3 | ||||
| -rw-r--r-- | numpy/setup.py | 1 |
9 files changed, 16 insertions, 16 deletions
diff --git a/numpy/build_utils/__init__.py b/numpy/_build_utils/__init__.py index 1d0f69b67..1d0f69b67 100644 --- a/numpy/build_utils/__init__.py +++ b/numpy/_build_utils/__init__.py diff --git a/numpy/build_utils/apple_accelerate.py b/numpy/_build_utils/apple_accelerate.py index d7351f4c5..d7351f4c5 100644 --- a/numpy/build_utils/apple_accelerate.py +++ b/numpy/_build_utils/apple_accelerate.py diff --git a/numpy/build_utils/common.py b/numpy/_build_utils/common.py index 8435c462c..8435c462c 100644 --- a/numpy/build_utils/common.py +++ b/numpy/_build_utils/common.py diff --git a/numpy/build_utils/src/apple_sgemv_fix.c b/numpy/_build_utils/src/apple_sgemv_fix.c index ffdfb81f7..ffdfb81f7 100644 --- a/numpy/build_utils/src/apple_sgemv_fix.c +++ b/numpy/_build_utils/src/apple_sgemv_fix.c diff --git a/numpy/build_utils/waf.py b/numpy/_build_utils/waf.py index 263640d9e..263640d9e 100644 --- a/numpy/build_utils/waf.py +++ b/numpy/_build_utils/waf.py diff --git a/numpy/bento.info b/numpy/bento.info index 9b91fe3ab..52b257543 100644 --- a/numpy/bento.info +++ b/numpy/bento.info @@ -3,7 +3,7 @@ Recurse: Library: Packages: - build_utils, + _build_utils, compat, core, core.code_generators, diff --git a/numpy/core/bscript b/numpy/core/bscript index c54e25272..4eea31ed7 100644 --- a/numpy/core/bscript +++ b/numpy/core/bscript @@ -13,9 +13,9 @@ waflib.Logs.verbose = 1 # Importing this adds new checkers to waf configure context - I don't like this # way of working, should find a more explicit way to attach new functions to # context. -import numpy.build_utils.waf +import numpy._build_utils.waf -from numpy.build_utils.apple_accelerate \ +from numpy._build_utils.apple_accelerate \ import \ get_sgemv_fix @@ -104,18 +104,18 @@ def type_checks(conf): header_name = "Python.h" features = "c pyext" for c_type in ("int", "long", "short"): - macro_name = "SIZEOF_%s" % numpy.build_utils.waf.sanitize_string(c_type) + macro_name = "SIZEOF_%s" % numpy._build_utils.waf.sanitize_string(c_type) conf.check_declaration(macro_name, header_name=header_name, features=features) NUMPYCONFIG_SYM.append((macro_name, macro_name)) for c_type, e_size in (("float", 4), ("double", 8), ("long double", [12, 16])): - macro_name = "SIZEOF_%s" % numpy.build_utils.waf.sanitize_string(c_type) + macro_name = "SIZEOF_%s" % numpy._build_utils.waf.sanitize_string(c_type) size = conf.check_type_size(c_type, header_name=header_name, features=features, expected_sizes=e_size) NUMPYCONFIG_SYM.append((macro_name, str(size))) - macro_name = "SIZEOF_COMPLEX_%s" % numpy.build_utils.waf.sanitize_string(c_type) + macro_name = "SIZEOF_COMPLEX_%s" % numpy._build_utils.waf.sanitize_string(c_type) complex_def = "struct {%s __x; %s __y;}" % (c_type, c_type) size = conf.check_type_size(complex_def, header_name=header_name, features=features, expected_sizes=2*size) @@ -126,12 +126,12 @@ def type_checks(conf): size = conf.check_type_size("Py_intptr_t", header_name=header_name, expected_sizes=[4, 8], features=features) - NUMPYCONFIG_SYM.append(('SIZEOF_%s' % numpy.build_utils.waf.sanitize_string("Py_intptr_t"), + NUMPYCONFIG_SYM.append(('SIZEOF_%s' % numpy._build_utils.waf.sanitize_string("Py_intptr_t"), '%d' % size)) size = conf.check_type_size("off_t", header_name=header_name, expected_sizes=[4, 8], features=features) - NUMPYCONFIG_SYM.append(('SIZEOF_%s' % numpy.build_utils.waf.sanitize_string("off_t"), + NUMPYCONFIG_SYM.append(('SIZEOF_%s' % numpy._build_utils.waf.sanitize_string("off_t"), '%d' % size)) # We check declaration AND type because that's how distutils does it. @@ -219,7 +219,7 @@ def check_math_runtime(conf): features = "c pyext cprogram" for f in OPTIONAL_STDFUNCS_MAYBE: try: - conf.check_declaration("HAVE_%s" % numpy.build_utils.waf.sanitize_string(f), + conf.check_declaration("HAVE_%s" % numpy._build_utils.waf.sanitize_string(f), header_name=header_name, features=features) OPTIONAL_STDFUNCS.remove(f) @@ -257,10 +257,10 @@ def check_complex(conf): for t in C99_COMPLEX_TYPES: try: conf.check_type(t, header_name='complex.h') - NUMPYCONFIG_SYM.append(('DEFINE_NPY_HAVE_%s' % numpy.build_utils.waf.sanitize_string(t), - '#define NPY_HAVE_%s' % numpy.build_utils.waf.sanitize_string(t))) + NUMPYCONFIG_SYM.append(('DEFINE_NPY_HAVE_%s' % numpy._build_utils.waf.sanitize_string(t), + '#define NPY_HAVE_%s' % numpy._build_utils.waf.sanitize_string(t))) except waflib.Errors.ConfigurationError: - NUMPYCONFIG_SYM.append(('DEFINE_NPY_HAVE_%s' % numpy.build_utils.waf.sanitize_string(t), '')) + NUMPYCONFIG_SYM.append(('DEFINE_NPY_HAVE_%s' % numpy._build_utils.waf.sanitize_string(t), '')) for prec in ["", "f", "l"]: flist = [f + prec for f in C99_COMPLEX_FUNCS] @@ -268,7 +268,7 @@ def check_complex(conf): else: NUMPYCONFIG_SYM.append(('DEFINE_NPY_USE_C99_COMPLEX', '')) for t in C99_COMPLEX_TYPES: - NUMPYCONFIG_SYM.append(('DEFINE_NPY_HAVE_%s' % numpy.build_utils.waf.sanitize_string(t), '')) + NUMPYCONFIG_SYM.append(('DEFINE_NPY_HAVE_%s' % numpy._build_utils.waf.sanitize_string(t), '')) def check_win32_specifics(conf): from numpy.distutils.misc_util import get_build_architecture @@ -300,7 +300,7 @@ def post_configure(context): type_checks(conf) signal_smp_checks(conf) check_math_runtime(conf) - numpy.build_utils.waf.check_inline(conf) + numpy._build_utils.waf.check_inline(conf) check_complex(conf) check_win32_specifics(conf) diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 9221bd2c4..99084b25e 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -10,7 +10,8 @@ from os.path import join from numpy.distutils import log from distutils.dep_util import newer from distutils.sysconfig import get_config_var -from numpy.build_utils.apple_accelerate import uses_accelerate_framework, get_sgemv_fix +from numpy._build_utils.apple_accelerate import (uses_accelerate_framework, + get_sgemv_fix) from setup_common import * diff --git a/numpy/setup.py b/numpy/setup.py index 9d8ff2ecd..58bb7dc93 100644 --- a/numpy/setup.py +++ b/numpy/setup.py @@ -7,7 +7,6 @@ def configuration(parent_package='',top_path=None): config = Configuration('numpy', parent_package, top_path) # If you update this list, then also update the file numpy/bento.info - config.add_subpackage('build_utils') config.add_subpackage('compat') config.add_subpackage('core') config.add_subpackage('distutils') |
