-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Easy updates of
f2py/*.py
from main.
These mostly update the copyright notices and a few includes. The trickier updates of ``f2py2e.py`` and ``crackfortran.py`` are left to a later PR.
- Loading branch information
Showing
13 changed files
with
41 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Auxiliary functions for f2py2e. | ||
Copyright 1999,2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
Permission to use, modify, and distribute this software is given under the | ||
terms of the NumPy (BSD style) LICENSE. | ||
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | ||
$Date: 2005/07/24 19:01:55 $ | ||
Pearu Peterson | ||
""" | ||
import pprint | ||
import sys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Copyright 1999,2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/05/06 10:57:33 $ | ||
Pearu Peterson | ||
""" | ||
from . import __version__ | ||
f2py_version = __version__.version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Build call-back mechanism for f2py2e. | ||
Copyright 2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/07/20 11:27:58 $ | ||
Pearu Peterson | ||
""" | ||
from . import __version__ | ||
from .auxfuncs import ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
C declarations, CPP macros, and C functions for f2py2e. | ||
Only required declarations/macros/functions will be used. | ||
Copyright 1999,2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/05/06 11:42:34 $ | ||
Pearu Peterson | ||
""" | ||
import sys | ||
import copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Build common block mechanism for f2py2e. | ||
Copyright 2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/05/06 10:57:33 $ | ||
Pearu Peterson | ||
""" | ||
from . import __version__ | ||
f2py_version = __version__.version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,12 @@ | |
""" | ||
crackfortran --- read fortran (77,90) code and extract declaration information. | ||
Copyright 1999-2004 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/09/27 07:13:49 $ | ||
Pearu Peterson | ||
Usage of crackfortran: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,15 +4,12 @@ | |
f2py2e - Fortran to Python C/API generator. 2nd Edition. | ||
See __usage__ below. | ||
Copyright 1999--2011 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/05/06 08:31:19 $ | ||
Pearu Peterson | ||
""" | ||
import sys | ||
import os | ||
|
@@ -21,6 +18,7 @@ | |
from pathlib import Path | ||
from itertools import dropwhile | ||
import argparse | ||
import copy | ||
|
||
from . import crackfortran | ||
from . import rules | ||
|
@@ -190,10 +188,10 @@ | |
Version: {f2py_version} | ||
numpy Version: {numpy_version} | ||
Requires: Python 3.5 or higher. | ||
License: NumPy license (see LICENSE.txt in the NumPy source code) | ||
Copyright 1999 - 2011 Pearu Peterson all rights reserved. | ||
https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e""" | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
https://numpy.org/doc/stable/f2py/index.html\n""" | ||
|
||
|
||
def scaninputline(inputline): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Build F90 module support for f2py2e. | ||
Copyright 2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/02/03 19:30:23 $ | ||
Pearu Peterson | ||
""" | ||
__version__ = "$Revision: 1.27 $"[10:-1] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Rules for building C/API module with f2py2e. | ||
Copyright 1999,2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2004/11/26 11:13:06 $ | ||
Pearu Peterson | ||
""" | ||
import copy | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,15 +40,12 @@ | |
return buildvalue | ||
Copyright 1999,2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2005/08/30 08:58:42 $ | ||
Pearu Peterson | ||
""" | ||
import os, sys | ||
import time | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Build 'use others module data' mechanism for f2py2e. | ||
Unfinished. | ||
Copyright 2000 Pearu Peterson all rights reserved, | ||
Pearu Peterson <[email protected]> | ||
Copyright 1999 -- 2011 Pearu Peterson all rights reserved. | ||
Copyright 2011 -- present NumPy Developers. | ||
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. | ||
$Date: 2000/09/10 12:35:43 $ | ||
Pearu Peterson | ||
""" | ||
__version__ = "$Revision: 1.3 $"[10:-1] | ||
|
||
|