<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">Failed building wheel for numpy 1.23.1 on termux.<br>
numpy 1.22.0 installed successfully.</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip install numpy"><pre class="notranslate"><span class="pl-s1">pip</span> <span class="pl-s1">install</span> <span class="pl-s1">numpy</span></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~ pip install --upgrade numpy
Requirement already satisfied: numpy in /data/data/com.termux/files/usr/lib/python3.10/site-packages (1.22.0)
Collecting numpy
  Using cached numpy-1.23.1.tar.gz (10.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: numpy
  Building wheel for numpy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for numpy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─&gt; [264 lines of output]
      Running from numpy source directory.
      setup.py:86: DeprecationWarning:

        `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
        of the deprecation of `distutils` itself. It will be removed for
        Python &gt;= 3.12. For older Python versions it will remain present.
        It is recommended to use `setuptools &lt; 60.0` for those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html


        import numpy.distutils.command.sdist
      Processing numpy/random/_bounded_integers.pxd.in
      Processing numpy/random/_bounded_integers.pyx.in
      Processing numpy/random/_common.pyx
      Processing numpy/random/_generator.pyx
      Processing numpy/random/_mt19937.pyx
      Processing numpy/random/_pcg64.pyx
      Processing numpy/random/_philox.pyx
      Processing numpy/random/_sfc64.pyx
      Processing numpy/random/bit_generator.pyx
      Processing numpy/random/mtrand.pyx
      Cythonizing sources
      INFO: blas_opt_info:
      INFO: blas_armpl_info:
      INFO: customize UnixCCompiler
      INFO:   libraries armpl_lp64_mp not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: blas_mkl_info:
      INFO:   libraries mkl_rt not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: blis_info:
      INFO:   libraries blis not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_info:
      INFO:   libraries openblas not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: accelerate_info:
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_blas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries tatlas not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_blas_info:
      INFO:   libraries satlas not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_blas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries ptf77blas,ptcblas,atlas not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_blas_info:
      INFO:   libraries f77blas,cblas,atlas not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:2077: UserWarning:
          Optimized (vendor) Blas libraries are not found.
          Falls back to netlib Blas library which has worse performance.
          A better performance should be easily gained by switching
          Blas library.
        if self._calc_info(blas):
      INFO: blas_info:
      INFO:   libraries blas not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:2077: UserWarning:
          Blas (http://www.netlib.org/blas/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [blas]) or by setting
          the BLAS environment variable.
        if self._calc_info(blas):
      INFO: blas_src_info:
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:2077: UserWarning:
          Blas (http://www.netlib.org/blas/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [blas_src]) or by setting
          the BLAS_SRC environment variable.
        if self._calc_info(blas):
      INFO:   NOT AVAILABLE
      INFO:
      non-existing path in 'numpy/distutils': 'site.cfg'
      INFO: lapack_opt_info:
      INFO: lapack_armpl_info:
      INFO:   libraries armpl_lp64_mp not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: lapack_mkl_info:
      INFO:   libraries mkl_rt not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_lapack_info:
      INFO:   libraries openblas not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_clapack_info:
      INFO:   libraries openblas,lapack not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: flame_info:
      INFO:   libraries flame not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries tatlas,tatlas not found in /data/data/com.termux/files/usr/lib
      INFO: &lt;class 'numpy.distutils.system_info.atlas_3_10_threads_info'&gt;
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_info:
      INFO:   libraries satlas,satlas not found in /data/data/com.termux/files/usr/lib
      INFO: &lt;class 'numpy.distutils.system_info.atlas_3_10_info'&gt;
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries ptf77blas,ptcblas,atlas not found in /data/data/com.termux/files/usr/lib
      INFO: &lt;class 'numpy.distutils.system_info.atlas_threads_info'&gt;
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_info:
      INFO:   libraries f77blas,cblas,atlas not found in /data/data/com.termux/files/usr/lib
      INFO: &lt;class 'numpy.distutils.system_info.atlas_info'&gt;
      INFO:   NOT AVAILABLE
      INFO:
      INFO: lapack_info:
      INFO:   libraries lapack not found in ['/data/data/com.termux/files/usr/lib']
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:1902: UserWarning:
          Lapack (http://www.netlib.org/lapack/) libraries not found.
          Directories to search for the libraries can be specified in the
          numpy/distutils/site.cfg file (section [lapack]) or by setting
          the LAPACK environment variable.
        return getattr(self, '_calc_info_{}'.format(name))()
      INFO: lapack_src_info:
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:1902: UserWarning:
          Lapack (http://www.netlib.org/lapack/) sources not found.
          Directories to search for the sources can be specified in the
          numpy/distutils/site.cfg file (section [lapack_src]) or by setting
          the LAPACK_SRC environment variable.
        return getattr(self, '_calc_info_{}'.format(name))()
      INFO:   NOT AVAILABLE
      INFO:
      INFO: numpy_linalg_lapack_lite:
      INFO:   FOUND:
      INFO:     language = c
      INFO:     define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
      INFO:
      Warning: attempted relative import with no known parent package
      /data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running config_cc
      INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
      running config_fc
      INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
      running build_src
      INFO: build_src
      INFO: building py_modules sources
      creating build
      creating build/src.linux-aarch64-3.10
      creating build/src.linux-aarch64-3.10/numpy
      creating build/src.linux-aarch64-3.10/numpy/distutils
      INFO: building library &quot;npymath&quot; sources
      WARN: Could not locate executable armflang
      WARN: Could not locate executable gfortran
      WARN: Could not locate executable f95
      WARN: Could not locate executable ifort
      WARN: Could not locate executable ifc
      WARN: Could not locate executable lf95
      WARN: Could not locate executable pgfortran
      WARN: Could not locate executable nvfortran
      WARN: Could not locate executable f90
      WARN: Could not locate executable f77
      WARN: Could not locate executable fort
      WARN: Could not locate executable efort
      WARN: Could not locate executable efc
      WARN: Could not locate executable g77
      WARN: Could not locate executable g95
      WARN: Could not locate executable pathf95
      WARN: Could not locate executable nagfor
      WARN: Could not locate executable frt
      WARN: don't know how to compile Fortran code on platform 'posix'
      creating build/src.linux-aarch64-3.10/numpy/core
      creating build/src.linux-aarch64-3.10/numpy/core/src
      creating build/src.linux-aarch64-3.10/numpy/core/src/npymath
      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/npymath/npy_math_internal.h
      INFO:   adding 'build/src.linux-aarch64-3.10/numpy/core/src/npymath' to include_dirs.
      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/npymath/ieee754.c
      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/npymath/npy_math_complex.c
      INFO: None - nothing done with h_files = ['build/src.linux-aarch64-3.10/numpy/core/src/npymath/npy_math_internal.h']
      INFO: building library &quot;npyrandom&quot; sources
      INFO: building extension &quot;numpy.core._multiarray_tests&quot; sources
      creating build/src.linux-aarch64-3.10/numpy/core/src/multiarray
      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/multiarray/_multiarray_tests.c
      INFO: building extension &quot;numpy.core._multiarray_umath&quot; sources
      Traceback (most recent call last):
        File &quot;/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 363, in &lt;module&gt;
          main()
        File &quot;/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File &quot;/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py&quot;, line 261, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py&quot;, line 230, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py&quot;, line 215, in _build_with_temp_dir
          self.run_setup()
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py&quot;, line 267, in run_setup
          super(_BuildMetaLegacyBackend,
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py&quot;, line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File &quot;setup.py&quot;, line 493, in &lt;module&gt;
          setup_package()
        File &quot;setup.py&quot;, line 485, in setup_package
          setup(**metadata)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/core.py&quot;, line 169, in setup
          return old_setup(**new_attr)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/__init__.py&quot;, line 153, in setup
          return distutils.core.setup(**attrs)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py&quot;, line 148, in setup
          dist.run_commands()
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py&quot;, line 967, in run_commands
          self.run_command(cmd)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py&quot;, line 986, in run_command
          cmd_obj.run()
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py&quot;, line 299, in run
          self.run_command('build')
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py&quot;, line 313, in run_command
          self.distribution.run_command(command)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py&quot;, line 986, in run_command
          cmd_obj.run()
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build.py&quot;, line 62, in run
          old_build.run(self)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py&quot;, line 135, in run
          self.run_command(cmd_name)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py&quot;, line 313, in run_command
          self.distribution.run_command(command)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py&quot;, line 986, in run_command
          cmd_obj.run()
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py&quot;, line 144, in run
          self.build_sources()
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py&quot;, line 161, in build_sources
          self.build_extension_sources(ext)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py&quot;, line 318, in build_extension_sources
          sources = self.generate_sources(sources, ext)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py&quot;, line 378, in generate_sources
          source = func(extension, build_dir)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/core/setup.py&quot;, line 513, in generate_config_h
          check_math_capabilities(config_cmd, ext, moredefs, mathlibs)
        File &quot;/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/core/setup.py&quot;, line 176, in check_math_capabilities
          raise SystemError(&quot;One of the required function to build numpy is not&quot;
      SystemError: One of the required function to build numpy is not available (the list is ['sin', 'cos', 'tan', 'sinh', 'cosh', 'tanh', 'fabs', 'floor', 'ceil', 'sqrt', 'log10', 'log', 'exp', 'asin', 'acos', 'atan', 'fmod', 'modf', 'frexp', 'ldexp']).
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects"><pre class="notranslate"><span class="pl-k">~</span> pip install --upgrade numpy
Requirement already satisfied: numpy <span class="pl-k">in</span> /data/data/com.termux/files/usr/lib/python3.10/site-packages (1.22.0)
Collecting numpy
  Using cached numpy-1.23.1.tar.gz (10.7 MB)
  Installing build dependencies ... <span class="pl-k">done</span>
  Getting requirements to build wheel ... <span class="pl-k">done</span>
  Preparing metadata (pyproject.toml) ... <span class="pl-k">done</span>
Building wheels <span class="pl-k">for</span> collected packages: numpy
  Building wheel <span class="pl-k">for</span> numpy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel <span class="pl-k">for</span> numpy (pyproject.toml) did not run successfully.
  │ <span class="pl-c1">exit</span> code: 1
  ╰─<span class="pl-k">&gt;</span> [264 lines of output]
      Running from numpy <span class="pl-c1">source</span> directory.
      setup.py:86: DeprecationWarning:

        <span class="pl-s"><span class="pl-pds">`</span>numpy.distutils<span class="pl-pds">`</span></span> is deprecated since NumPy 1.23.0, as a result
        of the deprecation of <span class="pl-s"><span class="pl-pds">`</span>distutils<span class="pl-pds">`</span></span> itself. It will be removed <span class="pl-k">for</span>
        Python <span class="pl-k">&gt;</span>= 3.12. For older Python versions it will remain present.
        It is recommended to use <span class="pl-s"><span class="pl-pds">`</span>setuptools <span class="pl-k">&lt;</span> 60.0<span class="pl-pds">`</span></span> <span class="pl-k">for</span> those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html


        import numpy.distutils.command.sdist
      Processing numpy/random/_bounded_integers.pxd.in
      Processing numpy/random/_bounded_integers.pyx.in
      Processing numpy/random/_common.pyx
      Processing numpy/random/_generator.pyx
      Processing numpy/random/_mt19937.pyx
      Processing numpy/random/_pcg64.pyx
      Processing numpy/random/_philox.pyx
      Processing numpy/random/_sfc64.pyx
      Processing numpy/random/bit_generator.pyx
      Processing numpy/random/mtrand.pyx
      Cythonizing sources
      INFO: blas_opt_info:
      INFO: blas_armpl_info:
      INFO: customize UnixCCompiler
      INFO:   libraries armpl_lp64_mp not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: blas_mkl_info:
      INFO:   libraries mkl_rt not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: blis_info:
      INFO:   libraries blis not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_info:
      INFO:   libraries openblas not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: accelerate_info:
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_blas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries tatlas not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_blas_info:
      INFO:   libraries satlas not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_blas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries ptf77blas,ptcblas,atlas not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_blas_info:
      INFO:   libraries f77blas,cblas,atlas not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:2077: UserWarning:
          Optimized (vendor) Blas libraries are not found.
          Falls back to netlib Blas library which has worse performance.
          A better performance should be easily gained by switching
          Blas library.
        <span class="pl-k">if</span> self._calc_info(blas):
      INFO: blas_info:
      INFO:   libraries blas not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:2077: UserWarning:
          Blas (http://www.netlib.org/blas/) libraries not found.
          Directories to search <span class="pl-k">for</span> <span class="pl-smi">the libraries can be specified</span> <span class="pl-k">in</span> the
          numpy/distutils/site.cfg file (section [blas]) or by setting
          the BLAS environment variable.
        <span class="pl-k">if</span> self._calc_info(blas):
      INFO: blas_src_info:
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:2077: UserWarning:
          Blas (http://www.netlib.org/blas/) sources not found.
          Directories to search <span class="pl-k">for</span> <span class="pl-smi">the sources can be specified</span> <span class="pl-k">in</span> the
          numpy/distutils/site.cfg file (section [blas_src]) or by setting
          the BLAS_SRC environment variable.
        <span class="pl-k">if</span> self._calc_info(blas):
      INFO:   NOT AVAILABLE
      INFO:
      non-existing path <span class="pl-k">in</span> <span class="pl-s"><span class="pl-pds">'</span>numpy/distutils<span class="pl-pds">'</span></span>: <span class="pl-s"><span class="pl-pds">'</span>site.cfg<span class="pl-pds">'</span></span>
      INFO: lapack_opt_info:
      INFO: lapack_armpl_info:
      INFO:   libraries armpl_lp64_mp not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: lapack_mkl_info:
      INFO:   libraries mkl_rt not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_lapack_info:
      INFO:   libraries openblas not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: openblas_clapack_info:
      INFO:   libraries openblas,lapack not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: flame_info:
      INFO:   libraries flame not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries tatlas,tatlas not found <span class="pl-k">in</span> /data/data/com.termux/files/usr/lib
      INFO: <span class="pl-k">&lt;</span>class <span class="pl-s"><span class="pl-pds">'</span>numpy.distutils.system_info.atlas_3_10_threads_info<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_3_10_info:
      INFO:   libraries satlas,satlas not found <span class="pl-k">in</span> /data/data/com.termux/files/usr/lib
      INFO: <span class="pl-k">&lt;</span>class <span class="pl-s"><span class="pl-pds">'</span>numpy.distutils.system_info.atlas_3_10_info<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_threads_info:
      INFO: Setting PTATLAS=ATLAS
      INFO:   libraries ptf77blas,ptcblas,atlas not found <span class="pl-k">in</span> /data/data/com.termux/files/usr/lib
      INFO: <span class="pl-k">&lt;</span>class <span class="pl-s"><span class="pl-pds">'</span>numpy.distutils.system_info.atlas_threads_info<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: atlas_info:
      INFO:   libraries f77blas,cblas,atlas not found <span class="pl-k">in</span> /data/data/com.termux/files/usr/lib
      INFO: <span class="pl-k">&lt;</span>class <span class="pl-s"><span class="pl-pds">'</span>numpy.distutils.system_info.atlas_info<span class="pl-pds">'</span></span><span class="pl-k">&gt;</span>
      INFO:   NOT AVAILABLE
      INFO:
      INFO: lapack_info:
      INFO:   libraries lapack not found <span class="pl-k">in</span> [<span class="pl-s"><span class="pl-pds">'</span>/data/data/com.termux/files/usr/lib<span class="pl-pds">'</span></span>]
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:1902: UserWarning:
          Lapack (http://www.netlib.org/lapack/) libraries not found.
          Directories to search <span class="pl-k">for</span> <span class="pl-smi">the libraries can be specified</span> <span class="pl-k">in</span> the
          numpy/distutils/site.cfg file (section [lapack]) or by setting
          the LAPACK environment variable.
        <span class="pl-k">return</span> getattr(self, <span class="pl-s"><span class="pl-pds">'</span>_calc_info_{}<span class="pl-pds">'</span></span>.format(name))()
      INFO: lapack_src_info:
      INFO:   NOT AVAILABLE
      INFO:
      /data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/system_info.py:1902: UserWarning:
          Lapack (http://www.netlib.org/lapack/) sources not found.
          Directories to search <span class="pl-k">for</span> <span class="pl-smi">the sources can be specified</span> <span class="pl-k">in</span> the
          numpy/distutils/site.cfg file (section [lapack_src]) or by setting
          the LAPACK_SRC environment variable.
        <span class="pl-k">return</span> getattr(self, <span class="pl-s"><span class="pl-pds">'</span>_calc_info_{}<span class="pl-pds">'</span></span>.format(name))()
      INFO:   NOT AVAILABLE
      INFO:
      INFO: numpy_linalg_lapack_lite:
      INFO:   FOUND:
      INFO:     language = c
      INFO:     define_macros = [(<span class="pl-s"><span class="pl-pds">'</span>HAVE_BLAS_ILP64<span class="pl-pds">'</span></span>, None), (<span class="pl-s"><span class="pl-pds">'</span>BLAS_SYMBOL_SUFFIX<span class="pl-pds">'</span></span>, <span class="pl-s"><span class="pl-pds">'</span>64_<span class="pl-pds">'</span></span>)]
      INFO:
      Warning: attempted relative import with no known parent package
      /data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: <span class="pl-s"><span class="pl-pds">'</span>define_macros<span class="pl-pds">'</span></span>
        warnings.warn(msg)
      running bdist_wheel
      running build
      running config_cc
      INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
      running config_fc
      INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
      running build_src
      INFO: build_src
      INFO: building py_modules sources
      creating build
      creating build/src.linux-aarch64-3.10
      creating build/src.linux-aarch64-3.10/numpy
      creating build/src.linux-aarch64-3.10/numpy/distutils
      INFO: building library <span class="pl-s"><span class="pl-pds">"</span>npymath<span class="pl-pds">"</span></span> sources
      WARN: Could not locate executable armflang
      WARN: Could not locate executable gfortran
      WARN: Could not locate executable f95
      WARN: Could not locate executable ifort
      WARN: Could not locate executable ifc
      WARN: Could not locate executable lf95
      WARN: Could not locate executable pgfortran
      WARN: Could not locate executable nvfortran
      WARN: Could not locate executable f90
      WARN: Could not locate executable f77
      WARN: Could not locate executable fort
      WARN: Could not locate executable efort
      WARN: Could not locate executable efc
      WARN: Could not locate executable g77
      WARN: Could not locate executable g95
      WARN: Could not locate executable pathf95
      WARN: Could not locate executable nagfor
      WARN: Could not locate executable frt
      WARN: don<span class="pl-s"><span class="pl-pds">'</span>t know how to compile Fortran code on platform <span class="pl-pds">'</span></span>posix<span class="pl-s"><span class="pl-pds">'</span></span>
<span class="pl-s">      creating build/src.linux-aarch64-3.10/numpy/core</span>
<span class="pl-s">      creating build/src.linux-aarch64-3.10/numpy/core/src</span>
<span class="pl-s">      creating build/src.linux-aarch64-3.10/numpy/core/src/npymath</span>
<span class="pl-s">      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/npymath/npy_math_internal.h</span>
<span class="pl-s">      INFO:   adding <span class="pl-pds">'</span></span>build/src.linux-aarch64-3.10/numpy/core/src/npymath<span class="pl-s"><span class="pl-pds">'</span> to include_dirs.</span>
<span class="pl-s">      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/npymath/ieee754.c</span>
<span class="pl-s">      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/npymath/npy_math_complex.c</span>
<span class="pl-s">      INFO: None - nothing done with h_files = [<span class="pl-pds">'</span></span>build/src.linux-aarch64-3.10/numpy/core/src/npymath/npy_math_internal.h<span class="pl-s"><span class="pl-pds">'</span>]</span>
<span class="pl-s">      INFO: building library "npyrandom" sources</span>
<span class="pl-s">      INFO: building extension "numpy.core._multiarray_tests" sources</span>
<span class="pl-s">      creating build/src.linux-aarch64-3.10/numpy/core/src/multiarray</span>
<span class="pl-s">      INFO: conv_template:&gt; build/src.linux-aarch64-3.10/numpy/core/src/multiarray/_multiarray_tests.c</span>
<span class="pl-s">      INFO: building extension "numpy.core._multiarray_umath" sources</span>
<span class="pl-s">      Traceback (most recent call last):</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in &lt;module&gt;</span>
<span class="pl-s">          main()</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main</span>
<span class="pl-s">          json_out[<span class="pl-pds">'</span></span>return_val<span class="pl-s"><span class="pl-pds">'</span>] = hook(**hook_input[<span class="pl-pds">'</span></span>kwargs<span class="pl-s"><span class="pl-pds">'</span>])</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel</span>
<span class="pl-s">          return _build_backend().build_wheel(wheel_directory, config_settings,</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 230, in build_wheel</span>
<span class="pl-s">          return self._build_with_temp_dir([<span class="pl-pds">'</span></span>bdist_wheel<span class="pl-s"><span class="pl-pds">'</span>], <span class="pl-pds">'</span></span>.whl<span class="pl-s"><span class="pl-pds">'</span>,</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir</span>
<span class="pl-s">          self.run_setup()</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 267, in run_setup</span>
<span class="pl-s">          super(_BuildMetaLegacyBackend,</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 158, in run_setup</span>
<span class="pl-s">          exec(compile(code, __file__, <span class="pl-pds">'</span></span>exec<span class="pl-s"><span class="pl-pds">'</span>), locals())</span>
<span class="pl-s">        File "setup.py", line 493, in &lt;module&gt;</span>
<span class="pl-s">          setup_package()</span>
<span class="pl-s">        File "setup.py", line 485, in setup_package</span>
<span class="pl-s">          setup(**metadata)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/core.py", line 169, in setup</span>
<span class="pl-s">          return old_setup(**new_attr)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup</span>
<span class="pl-s">          return distutils.core.setup(**attrs)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup</span>
<span class="pl-s">          dist.run_commands()</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands</span>
<span class="pl-s">          self.run_command(cmd)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command</span>
<span class="pl-s">          cmd_obj.run()</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run</span>
<span class="pl-s">          self.run_command(<span class="pl-pds">'</span></span>build<span class="pl-s"><span class="pl-pds">'</span>)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command</span>
<span class="pl-s">          self.distribution.run_command(command)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command</span>
<span class="pl-s">          cmd_obj.run()</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build.py", line 62, in run</span>
<span class="pl-s">          old_build.run(self)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 135, in run</span>
<span class="pl-s">          self.run_command(cmd_name)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command</span>
<span class="pl-s">          self.distribution.run_command(command)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-build-env-kgfmqn3p/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command</span>
<span class="pl-s">          cmd_obj.run()</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py", line 144, in run</span>
<span class="pl-s">          self.build_sources()</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py", line 161, in build_sources</span>
<span class="pl-s">          self.build_extension_sources(ext)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py", line 318, in build_extension_sources</span>
<span class="pl-s">          sources = self.generate_sources(sources, ext)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/distutils/command/build_src.py", line 378, in generate_sources</span>
<span class="pl-s">          source = func(extension, build_dir)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/core/setup.py", line 513, in generate_config_h</span>
<span class="pl-s">          check_math_capabilities(config_cmd, ext, moredefs, mathlibs)</span>
<span class="pl-s">        File "/data/data/com.termux/files/usr/tmp/pip-install-it2r5hri/numpy_4ccd1d6a6dfd4714af11cbdb029cb697/numpy/core/setup.py", line 176, in check_math_capabilities</span>
<span class="pl-s">          raise SystemError("One of the required function to build numpy is not"</span>
<span class="pl-s">      SystemError: One of the required function to build numpy is not available (the list is [<span class="pl-pds">'</span></span>sin<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>cos<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>tan<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>sinh<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>cosh<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>tanh<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>fabs<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>floor<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>ceil<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>sqrt<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>log10<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>log<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>exp<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>asin<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>acos<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>atan<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>fmod<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>modf<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>frexp<span class="pl-s"><span class="pl-pds">'</span>, <span class="pl-pds">'</span></span>ldexp<span class="pl-s"><span class="pl-pds">'</span>]).</span>
<span class="pl-s">      [end of output]</span>
<span class="pl-s"></span>
<span class="pl-s">  note: This error originates from a subprocess, and is likely not a problem with pip.</span>
<span class="pl-s">  ERROR: Failed building wheel for numpy</span>
<span class="pl-s">Failed to build numpy</span>
<span class="pl-s">ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects</span></pre></div>
<h3 dir="auto">NumPy/Python version information:</h3>
<p dir="auto">numpy 1.23.1 , python 3.10.6<br>
Android, termux 0.118</p>
<h3 dir="auto">Issue with current documentation:</h3>
<p dir="auto">Current parameters <a href="https://numpy.org/doc/stable/reference/generated/numpy.where.html" rel="nofollow">are listed as</a>:</p>
<p dir="auto">numpy.where(condition, [x, y, ]/)</p>
<p dir="auto">However, the function expects (condition, x, y) where x and y are both array-like. Providing both in a list (as [x,y] suggests) raises the following.</p>
<p dir="auto">ValueError: either both or neither of x and y should be given</p>
<h3 dir="auto">Idea or request for content:</h3>
<p dir="auto">Change to numpy.where(condition, x, y)</p>
<p dir="auto">I've tried to find where the source for this is located so I could open a pull request, but I couldn't find the where function in the docs (This is my first time contributing to an open source project).</p>
<p dir="auto">I've tried to follow the contribution guidelines, but please let me know if I ought to do something differently!</p>