()
| 483 | from numpy.distutils.core import numpy_cmdclass as cmdclass |
| 484 | |
| 485 | def setup_package(): |
| 486 | src_path = os.path.dirname(os.path.abspath(__file__)) |
| 487 | old_path = os.getcwd() |
| 488 | os.chdir(src_path) |
| 489 | sys.path.insert(0, src_path) |
| 490 | |
| 491 | # The f2py scripts that will be installed |
| 492 | if sys.platform == 'win32': |
| 493 | f2py_cmds = [ |
| 494 | 'f2py = numpy.f2py.f2py2e:main', |
| 495 | ] |
| 496 | else: |
| 497 | f2py_cmds = [ |
| 498 | 'f2py = numpy.f2py.f2py2e:main', |
| 499 | 'f2py%s = numpy.f2py.f2py2e:main' % sys.version_info[:1], |
| 500 | 'f2py%s.%s = numpy.f2py.f2py2e:main' % sys.version_info[:2], |
| 501 | ] |
| 502 | |
| 503 | metadata = dict( |
| 504 | name='numpy', |
| 505 | maintainer="NumPy Developers", |
| 506 | maintainer_email="numpy-discussion@python.org", |
| 507 | description="Fundamental package for array computing in Python", |
| 508 | long_description=Path("README.md").read_text(encoding="utf-8"), |
| 509 | long_description_content_type="text/markdown", |
| 510 | url="https://www.numpy.org", |
| 511 | author="Travis E. Oliphant et al.", |
| 512 | download_url="https://pypi.python.org/pypi/numpy", |
| 513 | project_urls={ |
| 514 | "Bug Tracker": "https://github.com/numpy/numpy/issues", |
| 515 | "Documentation": get_docs_url(), |
| 516 | "Source Code": "https://github.com/numpy/numpy", |
| 517 | }, |
| 518 | license='BSD-3-Clause', |
| 519 | classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f], |
| 520 | platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], |
| 521 | test_suite='pytest', |
| 522 | version=VERSION, |
| 523 | cmdclass=cmdclass, |
| 524 | python_requires='>=3.9', |
| 525 | zip_safe=False, |
| 526 | entry_points={ |
| 527 | 'console_scripts': f2py_cmds, |
| 528 | 'array_api': ['numpy = numpy.array_api'], |
| 529 | 'pyinstaller40': ['hook-dirs = numpy:_pyinstaller_hooks_dir'], |
| 530 | }, |
| 531 | ) |
| 532 | |
| 533 | if "--force" in sys.argv: |
| 534 | run_build = True |
| 535 | sys.argv.remove('--force') |
| 536 | else: |
| 537 | # Raise errors for unsupported commands, improve help output, etc. |
| 538 | run_build = parse_setuppy_commands() |
| 539 | |
| 540 | if run_build: |
| 541 | # patches distutils, even though we don't use it |
| 542 | #from setuptools import setup |
no test coverage detected