blob: 12d3010b37394c8e3b9a64c744e1054d1d22f2ec [file] [log] [blame]
Fernando Perez36d3c162006-07-12 06:02:281#!/usr/bin/env python
Ralf Gommers759dd952018-08-23 17:11:582""" NumPy is the fundamental package for array computing with Python.
Travis Oliphantda9c6da2006-01-04 17:31:073
Ralf Gommers759dd952018-08-23 17:11:584It provides:
Travis Oliphantda9c6da2006-01-04 17:31:075
Ralf Gommers759dd952018-08-23 17:11:586- a powerful N-dimensional array object
7- sophisticated (broadcasting) functions
8- tools for integrating C/C++ and Fortran code
9- useful linear algebra, Fourier transform, and random number capabilities
10- and much more
Charles Harris6aa264c2013-02-27 20:26:5811
Ralf Gommers759dd952018-08-23 17:11:5812Besides its obvious scientific uses, NumPy can also be used as an efficient
13multi-dimensional container of generic data. Arbitrary data-types can be
14defined. This allows NumPy to seamlessly and speedily integrate with a wide
15variety of databases.
Matthew Brettbe575d52016-03-07 20:52:0816
Ralf Gommers759dd952018-08-23 17:11:5817All NumPy wheels distributed on PyPI are BSD licensed.
Matthew Brettbe575d52016-03-07 20:52:0818
Travis Oliphantda9c6da2006-01-04 17:31:0719"""
Charles Harrisbb726ca2013-04-06 19:25:2620from __future__ import division, print_function
Travis Oliphantda9c6da2006-01-04 17:31:0721
David Sanders922442f2015-10-19 20:03:3422DOCLINES = (__doc__ or '').split("\n")
Pearu Petersonc415fd12002-11-18 22:39:3123
Pearu Petersone8fa0132003-03-07 18:08:2824import os
25import sys
David Cournapeau5623a7c2009-04-02 16:21:3026import subprocess
Ralf Gommers99e99e92015-12-29 14:24:2227import textwrap
Pearu Petersonc415fd12002-11-18 22:39:3128
Ralf Gommers17716d72013-12-06 19:45:4029
Joseph Fox-Rabinovitz21d2fb72016-04-12 05:34:3930if sys.version_info[:2] < (2, 7) or (3, 0) <= sys.version_info[:2] < (3, 4):
Charles Harris3ce03de2016-04-09 15:18:2231 raise RuntimeError("Python version 2.7 or >= 3.4 required.")
Charles Harris28eadc02013-07-11 18:08:4932
Charles Harris09a52ed2013-03-28 23:13:5333if sys.version_info[0] >= 3:
David Cournapeau2b517692009-12-03 15:53:2934 import builtins
Charles Harris09a52ed2013-03-28 23:13:5335else:
36 import __builtin__ as builtins
David Cournapeau2b517692009-12-03 15:53:2937
Ralf Gommers17716d72013-12-06 19:45:4038
Travis Oliphantda9c6da2006-01-04 17:31:0739CLASSIFIERS = """\
Robert Kern19da9712008-06-18 22:53:4440Development Status :: 5 - Production/Stable
Travis Oliphantda9c6da2006-01-04 17:31:0741Intended Audience :: Science/Research
42Intended Audience :: Developers
43License :: OSI Approved
44Programming Language :: C
45Programming Language :: Python
Alex Willmer193668a2015-08-05 09:29:3946Programming Language :: Python :: 2
Alex Willmer193668a2015-08-05 09:29:3947Programming Language :: Python :: 2.7
rgommerscdac1202011-01-25 14:02:4048Programming Language :: Python :: 3
Alex Willmer193668a2015-08-05 09:29:3949Programming Language :: Python :: 3.4
50Programming Language :: Python :: 3.5
Charles Harrisb33a5ee2016-11-05 19:48:3051Programming Language :: Python :: 3.6
Ralf Gommers943695b2018-06-28 02:26:1952Programming Language :: Python :: 3.7
Alex Willmer193668a2015-08-05 09:29:3953Programming Language :: Python :: Implementation :: CPython
Travis Oliphantda9c6da2006-01-04 17:31:0754Topic :: Software Development
55Topic :: Scientific/Engineering
56Operating System :: Microsoft :: Windows
57Operating System :: POSIX
58Operating System :: Unix
59Operating System :: MacOS
60"""
61
Ralf Gommers58c1bf72012-11-05 19:47:2362MAJOR = 1
Charles Harris79ba2892018-06-12 21:51:5863MINOR = 16
David Cournapeau5e041cb2009-03-27 11:16:0164MICRO = 0
Charles Harris971e2e82019-01-13 22:58:1565ISRELEASED = True
Charles Harris7ee52002019-01-05 00:58:0166VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
Stefan van der Waltb9a22d72009-06-17 14:28:0367
Ralf Gommers17716d72013-12-06 19:45:4068
Scott Sinclair58e63602010-11-09 15:09:1569# Return the git revision as a string
70def git_version():
David Cournapeau44d92ec2009-06-01 05:43:1671 def _minimal_ext_cmd(cmd):
72 # construct minimal environment
73 env = {}
Robert Kernc0be9952017-03-09 00:38:5474 for k in ['SYSTEMROOT', 'PATH', 'HOME']:
David Cournapeau5032b522009-09-18 10:10:3975 v = os.environ.get(k)
76 if v is not None:
77 env[k] = v
David Cournapeau44d92ec2009-06-01 05:43:1678 # LANGUAGE is used on win32
79 env['LANGUAGE'] = 'C'
80 env['LANG'] = 'C'
81 env['LC_ALL'] = 'C'
Charles Harris054d93a2017-11-29 18:53:2182 out = subprocess.Popen(cmd, stdout=subprocess.PIPE, env=env).communicate()[0]
David Cournapeau44d92ec2009-06-01 05:43:1683 return out
84
David Cournapeau5623a7c2009-04-02 16:21:3085 try:
Scott Sinclair58e63602010-11-09 15:09:1586 out = _minimal_ext_cmd(['git', 'rev-parse', 'HEAD'])
Pauli Virtanend1a184c2010-11-15 01:00:0687 GIT_REVISION = out.strip().decode('ascii')
David Cournapeau5623a7c2009-04-02 16:21:3088 except OSError:
Scott Sinclaird5ed7442010-11-10 05:19:1589 GIT_REVISION = "Unknown"
David Cournapeau5e041cb2009-03-27 11:16:0190
Scott Sinclair58e63602010-11-09 15:09:1591 return GIT_REVISION
David Cournapeau5e041cb2009-03-27 11:16:0192
Ralf Gommers4b0ed792015-12-29 10:29:3893# BEFORE importing setuptools, remove MANIFEST. Otherwise it may not be
94# properly updated when the contents of directories change (true for distutils,
95# not sure about setuptools).
96if os.path.exists('MANIFEST'):
97 os.remove('MANIFEST')
David Cournapeau5bb1aa52009-03-27 16:39:0198
99# This is a bit hackish: we are setting a global variable so that the main
100# numpy __init__ can detect if it is being loaded by the setup routine, to
101# avoid attempting to load components that aren't built yet. While ugly, it's
102# a lot more robust than what was previously being used.
David Cournapeau2b517692009-12-03 15:53:29103builtins.__NUMPY_SETUP__ = True
David Cournapeau5bb1aa52009-03-27 16:39:01104
rgommers13212a52011-03-03 16:13:08105
Ralf Gommers17716d72013-12-06 19:45:40106def get_version_info():
Ralf Gommers87e12c12011-03-24 15:30:06107 # Adding the git rev number needs to be done inside write_version_py(),
108 # otherwise the import of numpy.version messes up the build under Python 3.
109 FULLVERSION = VERSION
110 if os.path.exists('.git'):
111 GIT_REVISION = git_version()
112 elif os.path.exists('numpy/version.py'):
113 # must be a source distribution, use existing version file
Ralf Gommerscd6d53f2011-04-17 14:04:11114 try:
115 from numpy.version import git_revision as GIT_REVISION
116 except ImportError:
117 raise ImportError("Unable to import git_revision. Try removing " \
118 "numpy/version.py and the build directory " \
119 "before building.")
Ralf Gommers87e12c12011-03-24 15:30:06120 else:
121 GIT_REVISION = "Unknown"
122
123 if not ISRELEASED:
Ã…smund Hjulstade15f2922015-02-10 17:07:55124 FULLVERSION += '.dev0+' + GIT_REVISION[:7]
Ralf Gommers87e12c12011-03-24 15:30:06125
Ralf Gommers17716d72013-12-06 19:45:40126 return FULLVERSION, GIT_REVISION
127
128
129def write_version_py(filename='numpy/version.py'):
130 cnt = """
131# THIS FILE IS GENERATED FROM NUMPY SETUP.PY
Ralf Gommers105a4982015-12-29 20:58:36132#
133# To compare versions robustly, use `numpy.lib.NumpyVersion`
Ralf Gommers17716d72013-12-06 19:45:40134short_version = '%(version)s'
135version = '%(version)s'
136full_version = '%(full_version)s'
137git_revision = '%(git_revision)s'
138release = %(isrelease)s
139
140if not release:
141 version = full_version
142"""
143 FULLVERSION, GIT_REVISION = get_version_info()
144
David Cournapeaua2ac9852009-03-27 11:15:36145 a = open(filename, 'w')
146 try:
Scott Sinclair58e63602010-11-09 15:09:15147 a.write(cnt % {'version': VERSION,
Charles Harris054d93a2017-11-29 18:53:21148 'full_version': FULLVERSION,
149 'git_revision': GIT_REVISION,
Scott Sinclair58e63602010-11-09 15:09:15150 'isrelease': str(ISRELEASED)})
David Cournapeaua2ac9852009-03-27 11:15:36151 finally:
152 a.close()
153
Ralf Gommers17716d72013-12-06 19:45:40154
Pearu Peterson471196b2006-03-31 08:59:36155def configuration(parent_package='',top_path=None):
156 from numpy.distutils.misc_util import Configuration
157
Pearu Peterson17d7cfe2006-04-04 12:26:14158 config = Configuration(None, parent_package, top_path)
Pearu Peterson471196b2006-03-31 08:59:36159 config.set_options(ignore_setup_xxx_py=True,
160 assume_default_configuration=True,
161 delegate_options_to_subpackages=True,
162 quiet=True)
Jarrod Millman0b77f0e2007-10-29 14:58:18163
Pearu Peterson471196b2006-03-31 08:59:36164 config.add_subpackage('numpy')
Charles Harris054d93a2017-11-29 18:53:21165 config.add_data_files(('numpy', 'LICENSE.txt'))
Jarrod Millman0b77f0e2007-10-29 14:58:18166
Pearu Peterson17d7cfe2006-04-04 12:26:14167 config.get_version('numpy/version.py') # sets config.version
Travis Oliphant00a35872007-05-31 04:57:01168
Pearu Peterson471196b2006-03-31 08:59:36169 return config
170
Ralf Gommers4b0ed792015-12-29 10:29:38171
Julian Taylor4cd72742014-01-29 21:59:19172def check_submodules():
173 """ verify that the submodules are checked out and clean
174 use `git submodule update --init`; on failure
175 """
176 if not os.path.exists('.git'):
177 return
178 with open('.gitmodules') as f:
179 for l in f:
180 if 'path' in l:
181 p = l.split('=')[-1].strip()
182 if not os.path.exists(p):
183 raise ValueError('Submodule %s missing' % p)
184
185
186 proc = subprocess.Popen(['git', 'submodule', 'status'],
187 stdout=subprocess.PIPE)
188 status, _ = proc.communicate()
189 status = status.decode("ascii", "replace")
190 for line in status.splitlines():
191 if line.startswith('-') or line.startswith('+'):
192 raise ValueError('Submodule not clean: %s' % line)
193
Ralf Gommers4b0ed792015-12-29 10:29:38194
Ralf Gommers6770f982016-01-27 20:34:28195from distutils.command.sdist import sdist
Julian Taylor4cd72742014-01-29 21:59:19196class sdist_checked(sdist):
197 """ check submodules on sdist to prevent incomplete tarballs """
198 def run(self):
199 check_submodules()
200 sdist.run(self)
Travis Oliphant14db4192005-09-14 22:08:46201
Ralf Gommers4b0ed792015-12-29 10:29:38202
Julian Taylorc9fd6342014-04-05 11:13:13203def generate_cython():
204 cwd = os.path.abspath(os.path.dirname(__file__))
205 print("Cythonizing sources")
206 p = subprocess.call([sys.executable,
207 os.path.join(cwd, 'tools', 'cythonize.py'),
208 'numpy/random'],
209 cwd=cwd)
210 if p != 0:
211 raise RuntimeError("Running cythonize failed!")
212
Ralf Gommers4b0ed792015-12-29 10:29:38213
Ralf Gommersb9f48092015-12-29 11:05:30214def parse_setuppy_commands():
Ralf Gommers99e99e92015-12-29 14:24:22215 """Check the commands and respond appropriately. Disable broken commands.
216
217 Return a boolean value for whether or not to run the build or not (avoid
218 parsing Cython and template files if False).
219 """
Eric Wieserb8b2a0e2018-03-12 08:29:52220 args = sys.argv[1:]
221
222 if not args:
Ralf Gommersb9f48092015-12-29 11:05:30223 # User forgot to give an argument probably, let setuptools handle that.
Ralf Gommers99e99e92015-12-29 14:24:22224 return True
Ralf Gommersb9f48092015-12-29 11:05:30225
Ralf Gommers99e99e92015-12-29 14:24:22226 info_commands = ['--help-commands', '--name', '--version', '-V',
227 '--fullname', '--author', '--author-email',
228 '--maintainer', '--maintainer-email', '--contact',
229 '--contact-email', '--url', '--license', '--description',
230 '--long-description', '--platforms', '--classifiers',
231 '--keywords', '--provides', '--requires', '--obsoletes']
Ralf Gommers99e99e92015-12-29 14:24:22232
233 for command in info_commands:
Eric Wieserb8b2a0e2018-03-12 08:29:52234 if command in args:
Ralf Gommers99e99e92015-12-29 14:24:22235 return False
236
237 # Note that 'alias', 'saveopts' and 'setopt' commands also seem to work
238 # fine as they are, but are usually used together with one of the commands
239 # below and not standalone. Hence they're not added to good_commands.
240 good_commands = ('develop', 'sdist', 'build', 'build_ext', 'build_py',
Ralf Gommersab5c6d02016-01-16 14:21:23241 'build_clib', 'build_scripts', 'bdist_wheel', 'bdist_rpm',
Ralf Gommersb9f48092015-12-29 11:05:30242 'bdist_wininst', 'bdist_msi', 'bdist_mpkg')
Ralf Gommers99e99e92015-12-29 14:24:22243
Ralf Gommersb9f48092015-12-29 11:05:30244 for command in good_commands:
Eric Wieserb8b2a0e2018-03-12 08:29:52245 if command in args:
Ralf Gommers99e99e92015-12-29 14:24:22246 return True
Ralf Gommersb9f48092015-12-29 11:05:30247
Ralf Gommersab5c6d02016-01-16 14:21:23248 # The following commands are supported, but we need to show more
Ralf Gommers99e99e92015-12-29 14:24:22249 # useful messages to the user
Eric Wieserb8b2a0e2018-03-12 08:29:52250 if 'install' in args:
Ralf Gommers99e99e92015-12-29 14:24:22251 print(textwrap.dedent("""
252 Note: if you need reliable uninstall behavior, then install
253 with pip instead of using `setup.py install`:
254
255 - `pip install .` (from a git repo or downloaded source
256 release)
Pierre de Buyl3f6672a2016-09-06 12:54:08257 - `pip install numpy` (last NumPy release on PyPi)
Ralf Gommers99e99e92015-12-29 14:24:22258
259 """))
260 return True
261
Eric Wieserb8b2a0e2018-03-12 08:29:52262 if '--help' in args or '-h' in sys.argv[1]:
Ralf Gommers99e99e92015-12-29 14:24:22263 print(textwrap.dedent("""
Pierre de Buyl3f6672a2016-09-06 12:54:08264 NumPy-specific help
Ralf Gommers99e99e92015-12-29 14:24:22265 -------------------
266
Pierre de Buyl3f6672a2016-09-06 12:54:08267 To install NumPy from here with reliable uninstall, we recommend
268 that you use `pip install .`. To install the latest NumPy release
Ralf Gommers99e99e92015-12-29 14:24:22269 from PyPi, use `pip install numpy`.
270
271 For help with build/installation issues, please ask on the
272 numpy-discussion mailing list. If you are sure that you have run
273 into a bug, please report it at https://github.com/numpy/numpy/issues.
274
275 Setuptools commands help
276 ------------------------
277 """))
278 return False
279
Eric Wieserb8b2a0e2018-03-12 08:29:52280
Ralf Gommers99e99e92015-12-29 14:24:22281 # The following commands aren't supported. They can only be executed when
282 # the user explicitly adds a --force command-line argument.
Ralf Gommersb9f48092015-12-29 11:05:30283 bad_commands = dict(
284 test="""
285 `setup.py test` is not supported. Use one of the following
286 instead:
287
288 - `python runtests.py` (to build and test)
289 - `python runtests.py --no-build` (to test installed numpy)
290 - `>>> numpy.test()` (run tests for installed numpy
291 from within an interpreter)
292 """,
293 upload="""
294 `setup.py upload` is not supported, because it's insecure.
295 Instead, build what you want to upload and upload those files
296 with `twine upload -s <filenames>` instead.
297 """,
298 upload_docs="`setup.py upload_docs` is not supported",
299 easy_install="`setup.py easy_install` is not supported",
300 clean="""
301 `setup.py clean` is not supported, use one of the following instead:
302
303 - `git clean -xdf` (cleans all files)
304 - `git clean -Xdf` (cleans all versioned files, doesn't touch
305 files that aren't checked into the git repo)
306 """,
307 check="`setup.py check` is not supported",
308 register="`setup.py register` is not supported",
309 bdist_dumb="`setup.py bdist_dumb` is not supported",
Ralf Gommers99e99e92015-12-29 14:24:22310 bdist="`setup.py bdist` is not supported",
311 build_sphinx="""
312 `setup.py build_sphinx` is not supported, use the
313 Makefile under doc/""",
314 flake8="`setup.py flake8` is not supported, use flake8 standalone",
Ralf Gommersb9f48092015-12-29 11:05:30315 )
Ralf Gommers99e99e92015-12-29 14:24:22316 bad_commands['nosetests'] = bad_commands['test']
Luca Mussi69d2cc82016-04-07 11:24:49317 for command in ('upload_docs', 'easy_install', 'bdist', 'bdist_dumb',
Ralf Gommers99e99e92015-12-29 14:24:22318 'register', 'check', 'install_data', 'install_headers',
319 'install_lib', 'install_scripts', ):
320 bad_commands[command] = "`setup.py %s` is not supported" % command
321
Ralf Gommersb9f48092015-12-29 11:05:30322 for command in bad_commands.keys():
Eric Wieserb8b2a0e2018-03-12 08:29:52323 if command in args:
Ralf Gommersb9f48092015-12-29 11:05:30324 print(textwrap.dedent(bad_commands[command]) +
325 "\nAdd `--force` to your command to use it anyway if you "
326 "must (unsupported).\n")
327 sys.exit(1)
328
Eric Wieserb8b2a0e2018-03-12 08:29:52329 # Commands that do more than print info, but also don't need Cython and
330 # template parsing.
331 other_commands = ['egg_info', 'install_egg_info', 'rotate']
332 for command in other_commands:
333 if command in args:
334 return False
335
Ralf Gommers99e99e92015-12-29 14:24:22336 # If we got here, we didn't detect what setup.py command was given
337 import warnings
338 warnings.warn("Unrecognized setuptools command, proceeding with "
Sebastian Berg7884a8c2016-01-23 14:58:58339 "generating Cython sources and expanding templates", stacklevel=2)
Ralf Gommers99e99e92015-12-29 14:24:22340 return True
Ralf Gommersb9f48092015-12-29 11:05:30341
342
Ralf Gommers17716d72013-12-06 19:45:40343def setup_package():
Charles Harrisb4180e32013-04-22 03:26:44344 src_path = os.path.dirname(os.path.abspath(sys.argv[0]))
Pauli Virtanen68159432009-12-06 11:56:18345 old_path = os.getcwd()
346 os.chdir(src_path)
347 sys.path.insert(0, src_path)
348
Pauli Virtanen01312182010-11-23 16:50:54349 # Rewrite the version file everytime
350 write_version_py()
351
Charles Harrisf22a33b2018-08-22 17:57:48352 # The f2py scripts that will be installed
353 if sys.platform == 'win32':
354 f2py_cmds = [
355 'f2py = numpy.f2py.f2py2e:main',
356 ]
357 else:
358 f2py_cmds = [
359 'f2py = numpy.f2py.f2py2e:main',
360 'f2py%s = numpy.f2py.f2py2e:main' % sys.version_info[:1],
361 'f2py%s.%s = numpy.f2py.f2py2e:main' % sys.version_info[:2],
362 ]
363
Ralf Gommers17716d72013-12-06 19:45:40364 metadata = dict(
365 name = 'numpy',
366 maintainer = "NumPy Developers",
Ralf Gommers46f7dca2017-03-26 07:52:46367 maintainer_email = "numpy-discussion@python.org",
Ralf Gommers17716d72013-12-06 19:45:40368 description = DOCLINES[0],
369 long_description = "\n".join(DOCLINES[2:]),
Mike Toews83828f52018-06-16 06:18:19370 url = "https://www.numpy.org",
Ralf Gommers17716d72013-12-06 19:45:40371 author = "Travis E. Oliphant et al.",
Charles Harrisec5985d2018-01-10 18:00:11372 download_url = "https://pypi.python.org/pypi/numpy",
Ralf Gommers17716d72013-12-06 19:45:40373 license = 'BSD',
374 classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
375 platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
376 test_suite='nose.collector',
Julian Taylor4cd72742014-01-29 21:59:19377 cmdclass={"sdist": sdist_checked},
Ralf Gommers343de6f2017-04-15 21:29:55378 python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
Nathaniel J. Smithf46e7162018-01-23 08:02:04379 zip_safe=False,
Charles Harrisf22a33b2018-08-22 17:57:48380 entry_points={
381 'console_scripts': f2py_cmds
382 },
Ralf Gommers17716d72013-12-06 19:45:40383 )
384
Ralf Gommers99e99e92015-12-29 14:24:22385 if "--force" in sys.argv:
386 run_build = True
Ralf Gommers20c3c2a2017-06-20 10:09:40387 sys.argv.remove('--force')
Ralf Gommers99e99e92015-12-29 14:24:22388 else:
389 # Raise errors for unsupported commands, improve help output, etc.
390 run_build = parse_setuppy_commands()
Ralf Gommersb9f48092015-12-29 11:05:30391
392 from setuptools import setup
Ralf Gommers99e99e92015-12-29 14:24:22393 if run_build:
Ralf Gommers17716d72013-12-06 19:45:40394 from numpy.distutils.core import setup
Julian Taylorc9fd6342014-04-05 11:13:13395 cwd = os.path.abspath(os.path.dirname(__file__))
396 if not os.path.exists(os.path.join(cwd, 'PKG-INFO')):
397 # Generate Cython sources, unless building from source release
398 generate_cython()
Ralf Gommers4b0ed792015-12-29 10:29:38399
Ralf Gommers17716d72013-12-06 19:45:40400 metadata['configuration'] = configuration
Ralf Gommers99e99e92015-12-29 14:24:22401 else:
402 # Version number is added to metadata inside configuration() if build
403 # is run.
404 metadata['version'] = get_version_info()[0]
Pauli Virtanen68159432009-12-06 11:56:18405
Pearu Petersone8fa0132003-03-07 18:08:28406 try:
Ralf Gommers17716d72013-12-06 19:45:40407 setup(**metadata)
Pearu Petersone8fa0132003-03-07 18:08:28408 finally:
409 del sys.path[0]
410 os.chdir(old_path)
Travis Oliphant14db4192005-09-14 22:08:46411 return
Pearu Petersonc415fd12002-11-18 22:39:31412
Ralf Gommers17716d72013-12-06 19:45:40413
Travis Oliphant14db4192005-09-14 22:08:46414if __name__ == '__main__':
Pearu Petersone8fa0132003-03-07 18:08:28415 setup_package()
Ralf Gommersbbee7472016-08-21 05:23:35416 # This may avoid problems where numpy is installed via ``*_requires`` by
417 # setuptools, the global namespace isn't reset properly, and then numpy is
418 # imported later (which will then fail to load numpy extension modules).
419 # See gh-7956 for details
420 del builtins.__NUMPY_SETUP__