Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wiseplat
GitHub Repository: wiseplat/python-code
Path: blob/master/ invest-robot-contest_TinkoffBotTwitch-main/venv/lib/python3.8/site-packages/numpy/f2py/setup.py
7757 views
1
#!/usr/bin/env python3
2
"""
3
setup.py for installing F2PY
4
5
Usage:
6
pip install .
7
8
Copyright 2001-2005 Pearu Peterson all rights reserved,
9
Pearu Peterson <[email protected]>
10
Permission to use, modify, and distribute this software is given under the
11
terms of the NumPy License.
12
13
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
14
$Revision: 1.32 $
15
$Date: 2005/01/30 17:22:14 $
16
Pearu Peterson
17
18
"""
19
from numpy.distutils.core import setup
20
from numpy.distutils.misc_util import Configuration
21
22
23
from __version__ import version
24
25
26
def configuration(parent_package='', top_path=None):
27
config = Configuration('f2py', parent_package, top_path)
28
config.add_subpackage('tests')
29
config.add_data_dir('tests/src')
30
config.add_data_files(
31
'src/fortranobject.c',
32
'src/fortranobject.h')
33
config.add_data_files('*.pyi')
34
return config
35
36
37
if __name__ == "__main__":
38
39
config = configuration(top_path='')
40
config = config.todict()
41
42
config['classifiers'] = [
43
'Development Status :: 5 - Production/Stable',
44
'Intended Audience :: Developers',
45
'Intended Audience :: Science/Research',
46
'License :: OSI Approved :: NumPy License',
47
'Natural Language :: English',
48
'Operating System :: OS Independent',
49
'Programming Language :: C',
50
'Programming Language :: Fortran',
51
'Programming Language :: Python',
52
'Topic :: Scientific/Engineering',
53
'Topic :: Software Development :: Code Generators',
54
]
55
setup(version=version,
56
description="F2PY - Fortran to Python Interface Generator",
57
author="Pearu Peterson",
58
author_email="[email protected]",
59
maintainer="Pearu Peterson",
60
maintainer_email="[email protected]",
61
license="BSD",
62
platforms="Unix, Windows (mingw|cygwin), Mac OSX",
63
long_description="""\
64
The Fortran to Python Interface Generator, or F2PY for short, is a
65
command line tool (f2py) for generating Python C/API modules for
66
wrapping Fortran 77/90/95 subroutines, accessing common blocks from
67
Python, and calling Python functions from Fortran (call-backs).
68
Interfacing subroutines/data from Fortran 90/95 modules is supported.""",
69
url="https://numpy.org/doc/stable/f2py/",
70
keywords=['Fortran', 'f2py'],
71
**config)
72
73