summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add __main__.py to MANIFEST.inDaniel Holth2019-05-141-0/+1
|/
* [PR #3369] more info into changelogMats Wichmann2019-05-131-0/+1
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix some regexes for Python 3.8 complaintsMats Wichmann2019-05-134-3/+4
| | | | | | | | | | | Regexes that contained unescaped backslashes and were not listed in raw string form caused one more test failure when Python 3.8 was experimentally turned on in the Travis CI build. Also one utility script had the same, not affecting tests - found through inspection. Signed-off-by: Mats Wichmann <mats@linux.com>
* [PR #3363] doc update for added flagsMats Wichmann2019-05-042-2/+5
| | | | | | Needed a doc regen to pick up the change. Signed-off-by: Mats Wichmann <mats@linux.com>
* Add -iquote and -idirafter for CCFLAGSMats Wichmann2019-05-023-8/+24
| | | | | | | | | | | Recognize two additional GNU compiler header directory search options: -iquote and -idirafter. Each takes a following arg, which scons now recognizes and adds together with the option to CCFLAGS. Note that (similar to -isystem which was added in git commit f8614aa2), this does not tell scons anything special, it only recognizes the flag + argument so it can be passed on to the compiler. Signed-off-by: Mats Wichmann <mats@linux.com>
* [ci skip] Update CHANGES.txtWilliam Deegan2019-05-011-1/+1
|
* Fix a small error in docbook toolMats Wichmann2019-04-302-1/+2
| | | | | | | The routine used in the builder if lxml is being used had a doubled write command likely to produce unexpected results. Signed-off-by: Mats Wichmann <mats@linux.com>
* Fix misplaced file closingMats Wichmann2019-04-281-2/+7
| | | | | | | | | One file close ended up in the wrong method, meaning it was closing a file which needed to stay open for further reading, while another method of the same name in a different class was missing one. (this didn't trigger any test fails, hmmm, just visual inspection) Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3353 from mwichmann/cacheDirWilliam Deegan2019-04-282-13/+78
|\ | | | | [WIP] Avoid cachedir races
| * [PR #3353] fix sider nitpickeryMats Wichmann2019-04-281-4/+4
| | | | | | | | | | | | | | | | sider complained about spelling in a comment after I updated the comment so it got to look at those lines as part of the change. Fix those. Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3353] tweaks per reviewMats Wichmann2019-04-281-10/+9
| | | | | | | | | | | | | | | | | | Simplify the Py2 check for an existing-but-old cachedir by using any and a generator expression. Move an import to module scope. Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3353] quiet sider complaint about bare except:Mats Wichmann2019-04-282-2/+5
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Avoid cachedir racesMats Wichmann2019-04-281-6/+69
| | | | | | | | | | | | | | | | | | 1. Add a Py3-only version of the cachedir config read, using exclusive open to avoid races. 2. In the Py2-only version, add the hack from issue #3351 to dodge one source of races. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3345 from mwichmann/py38warns4-testsWilliam Deegan2019-04-2829-216/+275
|\ \ | |/ |/| [wip] Py38warns4 tests
| * [#PR 3345] clean up some sider complaintsMats Wichmann2019-04-272-3/+1
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3345] fix more PY3.8 failsMats Wichmann2019-04-264-16/+21
| | | | | | | | | | | | | | | | | | | | | | File closes in msvs tool Context manager in rpm tool Dummy compiler, assembler scripts can be called in unexpected ways (namely by gcc tool init), which passes --version flag. don't take exception on the getopt call. Try again to undo my breakage of _subproc, which was failing on Win+PY27 Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3345] fix a few more Py3.8 problemsMats Wichmann2019-04-252-5/+12
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PR #3345] fix flake8 compliants on the PRMats Wichmann2019-04-253-4/+4
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PY 3.8] test fixes for file closings, rawstringsMats Wichmann2019-04-2512-118/+151
| | | | | | | | | | | | | | On a linux host (missing some things that may be on the Travis CI setup), Py3.8a3 now shows 19 fails, 1048 pass, with 84 Warning: messages. Signed-off-by: Mats Wichmann <mats@linux.com>
| * [PY 3.8] file closes in tools and othersMats Wichmann2019-04-2516-92/+108
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3360 from mwichmann/isnotWilliam Deegan2019-04-2836-167/+172
|\ \ | | | | | | Some more lint-derived cleanups
| * | Some more lint-derived cleanupsMats Wichmann2019-04-2736-167/+172
| |/ | | | | | | | | | | | | | | | | | | | | | | Consistently use "not is" and "not in", many instances used the form "not x is y" instead, which pylint objected to. A couple of bare except clauses got a qualifier. Files otherwise touched had trailing whitespace cleaned up as well. These are all things that sider would complain about if a change happened nearby, so this is pre-emptive. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3341 from bdbaddog/enhanced_debug_explainWilliam Deegan2019-04-283-7/+40
|\ \ | | | | | | Enhanced debug explain
| * \ Merge branch 'master' into enhanced_debug_explainWilliam Deegan2019-04-273-0/+37
| |\ \
| * | | switch to using zip_longest and handle py27 naming it izip_longest from ↵William Deegan2019-04-271-3/+8
| | | | | | | | | | | | | | | | ampping None to allow for explain to handel old and new dependency lists of different lengths
| * | | Merge branch 'master' into enhanced_debug_explainWilliam Deegan2019-04-2646-457/+667
| |\ \ \ | | | |/ | | |/|
| * | | Added blurb to RELEASE.txtWilliam Deegan2019-04-261-2/+12
| | | |
| * | | Add blurb to CHANGES.txt on debug=explain formatting changesWilliam Deegan2019-04-021-4/+15
| | | |
| * | | Enhanced --debug=explain output. Breaks out sources, depends, and implicit ↵William Deegan2019-04-021-4/+10
| | | | | | | | | | | | | | | | components to dependency list. Updated test. TODO: better formatting
* | | | Merge pull request #3359 from bdbaddog/fortran_issue_3135William Deegan2019-04-275-84/+221
|\ \ \ \ | |_|_|/ |/| | | Fix Issue #3135 - Type Bound procedures in Fortran submodules
| * | | Update CHANGES.txtWilliam Deegan2019-04-271-4/+2
| | | | | | | | | | | | fixed CHANGES.txt to have only one section for Peter Dienier
| * | | Update with fixes to handling of submodules.Peter Diener2019-04-261-1/+4
| | | |
| * | | Also ignore PURE and ELEMENTAL after MODULE in Scanner and Emitter.Peter Diener2019-04-262-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add subroutines that are declared pure and elemental to the test of the Emitter. Note that in test_1.f90, the interface is repeated in the submodule, whereas in test_2.f90 the interface is taken from the module. Also note that the regex does not check whether "module pure" or "module elemental" is actually followed by "subroutine" or "function". This would be a syntax error and should trigger a compile time error.
| * | | Fix Issue #3135 - Also add tests to check that emitter is properly ↵William Deegan2019-04-253-3/+132
| | | | | | | | | | | | | | | | processing interface module declarations
| * | | PEP8 plus switch to unittest.main() when running directlyWilliam Deegan2019-04-251-71/+69
| | | |
| * | | Use raw strings in regexes.Peter Diener2019-03-062-4/+4
| | | |
| * | | Fix issue #3135.Peter Diener2019-03-042-13/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes issue #3135 regarding the issue with using type bound procedures in Fortran submodules. The fix consists of changing the regex used in the scanner and the emitter to ignore lines starting with: module subroutine and module function as these are used to define type bound procedures instead of modules named 'subroutine' or 'function'. The regex is case insensitive.
* | | | [skip ci] remove text from RELEASE.txtWilliam Deegan2019-04-261-12/+2
| | | |
* | | | [skip ci] Add text to RELEASE.txt to cover this changeWilliam Deegan2019-04-261-2/+12
| | | |
* | | | Merge branch 'master' into ↵William Deegan2019-04-2646-458/+667
|\ \ \ \ | | |_|/ | |/| | | | | | fix_mongo_bug_33111_multiple_targets_via_emitter_spurious_rebuilds
| * | | [PR #3337] fix two minor Sider complaintsMats Wichmann2019-04-241-2/+1
| | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | [PR #3337] test case now uses mocked envMats Wichmann2019-04-241-24/+42
| | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | [PR #3337] add testcase for tool lookupMats Wichmann2019-04-242-23/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a unit test to show find_program_path does not alter env['ENV']['PATH']. A little cleanup in Tool/__init__.py: don't use mutable object as default value in function signature (checkers complain about this); getter/setter usage seemed unnecessary - kept one of the two but use modern syntax (checkers complain about use-before set, which is fixed by the change) Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | Merge branch 'master' into tool-addWilliam Deegan2019-04-2342-323/+470
| |\ \ \
| | * \ \ Merge pull request #3352 from mwichmann/java-versWilliam Deegan2019-04-237-69/+173
| | |\ \ \ | | | | | | | | | | | | Fix problems with jdk detection
| | | * \ \ Merge pull request #1 from bdbaddog/java-versMats Wichmann2019-04-222-95/+136
| | | |\ \ \ | | | | | | | | | | | | | | changes to unit test to avoid hitting the filesystem
| | | | * | | changes to unit test to avoid hitting the filesystemWilliam Deegan2019-04-222-95/+136
| | | | | | |
| | | * | | | Merge branch 'master' into java-versWilliam Deegan2019-04-2229-253/+209
| | | |\ \ \ \ | | | | |/ / / | | | |/| | |
| | | * | | | Move the jdk-version-glob test to unit testsMats Wichmann2019-04-171-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| | | * | | | Fix problems with jdk detectionMats Wichmann2019-04-146-42/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The java tool common routine finds a jdk by doing a filesystem glob. This had a problem on windows in the case a specific version is requested, because the format of name of the jdk directory has changed with JDK 9 - there is a dash between jdk and the version string. The glob which does not attempt to match a version was general enough not to trip on this, but with a version to match it would never match jdk-9 or higher. The test harness then asks the found javac what version it is, and the parsing of that did not work as expected once version numbers became double-digit, as the regex was for a single digit followed by a dot. The outcome is for 11.0.2 we get back '11' instead of '11.0'. Change the regex to match any number of digits followed by dot. The Repository/RMIC.py change is to align with an earlier change to Java/RMIC.py, but the may not be needed after the change to regex just described. Clean up some of the Java tool routines for consistency (there was no functional change outside of JavaCommon.py) Docstrings added or updated in several places. Signed-off-by: Mats Wichmann <mats@linux.com>