• 大小: 4.89MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-22
  • 语言: Python
  • 标签: python  numpy  

资源简介

python numpy 库,直接解压安装就行,这个是编译好的,不需要VC的库。

资源截图

代码片段和文件信息

#!/usr/bin/env python
“““
runtests.py [OPTIONS] [-- ARGS]

Run tests building the project first.

Examples::

    $ python runtests.py
    $ python runtests.py -s {SAMPLE_SUBMODULE}
    $ python runtests.py -t {SAMPLE_TEST}
    $ python runtests.py --ipython
    $ python runtests.py --python somescript.py
    $ python runtests.py --bench
    $ python runtests.py --durations 20

Run a debugger:

    $ gdb --args python runtests.py [...other args...]

Generate C code coverage listing under build/lcov/:
(requires http://ltp.sourceforge.net/coverage/lcov.php)

    $ python runtests.py --gcov [...other args...]
    $ python runtests.py --lcov-html

“““
from __future__ import division print_function

#
# This is a generic test runner script for projects using NumPy‘s test
# framework. Change the following values to adapt to your project:
#

PROJECT_MODULE = “numpy“
PROJECT_ROOT_FILES = [‘numpy‘ ‘LICENSE.txt‘ ‘setup.py‘]
SAMPLE_TEST = “numpy/linalg/tests/test_linalg.py::test_byteorder_check“
SAMPLE_SUBMODULE = “linalg“

EXTRA_PATH = [‘/usr/lib/ccache‘ ‘/usr/lib/f90cache‘
              ‘/usr/local/lib/ccache‘ ‘/usr/local/lib/f90cache‘]

# ---------------------------------------------------------------------


if __doc__ is None:
    __doc__ = “Run without -OO if you want usage info“
else:
    __doc__ = __doc__.format(**globals())


import sys
import os

# In case we are run from the source directory we don‘t want to import the
# project from there:
sys.path.pop(0)

import shutil
import subprocess
import time
from argparse import ArgumentParser REMAINDER

ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__)))

def main(argv):
    parser = ArgumentParser(usage=__doc__.lstrip())
    parser.add_argument(“--verbose“ “-v“ action=“count“ default=1
                        help=“more verbosity“)
    parser.add_argument(“--no-build“ “-n“ action=“store_true“ default=False
                        help=“do not build the project (use system installed version)“)
    parser.add_argument(“--build-only“ “-b“ action=“store_true“ default=False
                        help=“just build do not run any tests“)
    parser.add_argument(“--doctests“ action=“store_true“ default=False
                        help=“Run doctests in module“)
    #parser.add_argument(“--refguide-check“ action=“store_true“ default=False
                        #help=“Run refguide check (do not run regular tests.)“)
    parser.add_argument(“--coverage“ action=“store_true“ default=False
                        help=(“report coverage of project code. HTML output goes “
                              “under build/coverage“))
    parser.add_argument(“--durations“ action=“store“ default=-1 type=int
                        help=(“Time N slowest tests time all if 0 time none if < 0“))
    parser.add_argument(“--gcov“ action=“store_true“ default=False
                        help=(“enable C code coverage via gcov (requires GCC). “
                              “

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-27 14:16  numpy-1.16.4\
     目录           0  2019-05-27 14:16  numpy-1.16.4\tools\
     目录           0  2019-05-27 14:16  numpy-1.16.4\benchmarks\
     目录           0  2019-05-27 14:16  numpy-1.16.4\doc\
     目录           0  2019-05-27 14:16  numpy-1.16.4\numpy\
     文件       17586  2019-05-27 12:41  numpy-1.16.4\runtests.py
     文件        3251  2018-02-28 17:03  numpy-1.16.4\THANKS.txt
     文件       14767  2019-05-27 14:06  numpy-1.16.4\setup.py
     文件        5525  2019-05-27 12:41  numpy-1.16.4\INSTALL.rst.txt
     文件        2072  2019-05-27 14:16  numpy-1.16.4\PKG-INFO
     文件        9210  2019-05-27 12:41  numpy-1.16.4\site.cfg.example
     文件        1563  2019-05-27 12:41  numpy-1.16.4\MANIFEST.in
     文件        1599  2019-02-21 17:33  numpy-1.16.4\tox.ini
     文件          40  2019-02-21 17:33  numpy-1.16.4\.coveragerc
     文件        2321  2019-05-27 12:41  numpy-1.16.4\LICENSE.txt
     文件        1026  2019-05-27 12:41  numpy-1.16.4\pytest.ini
     目录           0  2019-05-27 14:16  numpy-1.16.4\tools\ci\
     目录           0  2019-05-27 14:16  numpy-1.16.4\tools\swig\
     目录           0  2019-05-27 14:16  numpy-1.16.4\tools\allocation_tracking\
     目录           0  2019-05-27 14:16  numpy-1.16.4\tools\npy_tempita\
     目录           0  2019-05-27 14:16  numpy-1.16.4\tools\c_coverage\
     文件        4408  2019-02-21 17:33  numpy-1.16.4\tools\changelog.py
     文件        2474  2019-05-27 12:41  numpy-1.16.4\tools\test-installed-numpy.py
     文件         794  2019-01-31 19:27  numpy-1.16.4\tools\commitstats.py
     文件        5741  2018-02-28 17:03  numpy-1.16.4\tools\replace_old_macros.sed
     文件        2091  2019-02-21 17:33  numpy-1.16.4\tools\find_deprecated_escaped_characters.py
     文件        7200  2019-02-21 17:33  numpy-1.16.4\tools\cythonize.py
     文件         351  2019-02-21 17:33  numpy-1.16.4\tools\travis-upload-wheel.sh
     文件        7583  2019-05-27 12:41  numpy-1.16.4\tools\travis-test.sh
     文件         524  2019-05-27 12:41  numpy-1.16.4\tools\travis-before-install.sh
     目录           0  2019-05-27 14:16  numpy-1.16.4\tools\ci\appveyor\
............此处省略1219个文件信息

评论

共有 条评论