OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
numpy
/
f2py
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
__init__.py
1.99 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
__main__.py
739 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📁
__pycache__
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
__version__.py
254 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
auxfuncs.py
21.31 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
capi_maps.py
30.78 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
cb_rules.py
21.71 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
cfuncs.py
42.42 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
common_rules.py
4.91 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
crackfortran.py
125.21 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
diagnose.py
5.17 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
f2py2e.py
22.37 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
f2py_testing.py
1.49 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
f90mod_rules.py
9.62 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
func2subr.py
9.01 KB
09/17/2017 01:29:38 PM
rw-r--r--
📄
info.py
136 bytes
09/17/2017 01:29:38 PM
rw-r--r--
📄
rules.py
57.17 KB
09/29/2017 05:31:46 PM
rw-r--r--
📄
setup.py
3.81 KB
12/05/2017 02:32:02 PM
rw-r--r--
📁
src
-
10/28/2024 08:45:52 AM
rwxr-xr-x
📄
use_rules.py
3.57 KB
09/17/2017 01:29:38 PM
rw-r--r--
Editing: setup.py
Close
#!/usr/bin/env python """ setup.py for installing F2PY Usage: python setup.py install Copyright 2001-2005 Pearu Peterson all rights reserved, Pearu Peterson <pearu@cens.ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the NumPy License. NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.32 $ $Date: 2005/01/30 17:22:14 $ Pearu Peterson """ from __future__ import division, print_function __version__ = "$Id: setup.py,v 1.32 2005/01/30 17:22:14 pearu Exp $" import os import sys from distutils.dep_util import newer from numpy.distutils import log from numpy.distutils.core import setup from numpy.distutils.misc_util import Configuration from __version__ import version def _get_f2py_shebang(): """ Return shebang line for f2py script If we are building a binary distribution format, then the shebang line should be ``#!python`` rather than ``#!`` followed by the contents of ``sys.executable``. """ if set(('bdist_wheel', 'bdist_egg', 'bdist_wininst', 'bdist_rpm')).intersection(sys.argv): return '#!python' return '#!' + sys.executable def configuration(parent_package='', top_path=None): config = Configuration('f2py', parent_package, top_path) config.add_data_dir('tests') config.add_data_files('src/fortranobject.c', 'src/fortranobject.h', ) config.make_svn_version_py() def generate_f2py_py(build_dir): f2py_exe = 'f2py'+sys.version[:3] if f2py_exe[-4:] == '.exe': f2py_exe = f2py_exe[:-4] + '.py' if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py': f2py_exe = f2py_exe + '.py' target = os.path.join(build_dir, f2py_exe) if newer(__file__, target): log.info('Creating %s', target) f = open(target, 'w') f.write(_get_f2py_shebang() + '\n') mainloc = os.path.join(os.path.dirname(__file__), "__main__.py") with open(mainloc) as mf: f.write(mf.read()) f.close() return target config.add_scripts(generate_f2py_py) log.info('F2PY Version %s', config.get_version()) return config if __name__ == "__main__": config = configuration(top_path='') print('F2PY Version', version) config = config.todict() config['download_url'] = "http://cens.ioc.ee/projects/f2py2e/2.x"\ "/F2PY-2-latest.tar.gz" config['classifiers'] = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: NumPy License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: C', 'Programming Language :: Fortran', 'Programming Language :: Python', 'Topic :: Scientific/Engineering', 'Topic :: Software Development :: Code Generators', ] setup(version=version, description="F2PY - Fortran to Python Interface Generaton", author="Pearu Peterson", author_email="pearu@cens.ioc.ee", maintainer="Pearu Peterson", maintainer_email="pearu@cens.ioc.ee", license="BSD", platforms="Unix, Windows (mingw|cygwin), Mac OSX", long_description="""\ The Fortran to Python Interface Generator, or F2PY for short, is a command line tool (f2py) for generating Python C/API modules for wrapping Fortran 77/90/95 subroutines, accessing common blocks from Python, and calling Python functions from Fortran (call-backs). Interfacing subroutines/data from Fortran 90/95 modules is supported.""", url="http://cens.ioc.ee/projects/f2py2e/", keywords=['Fortran', 'f2py'], **config)