| 813ae6e9 | 13-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: enable Python-3
We require at least Python-2.6, but preliminary tests with Python-3.6 and 3.7 are successful. There may be a few quirks to work out, but I believe it is ready for broader te
config: enable Python-3
We require at least Python-2.6, but preliminary tests with Python-3.6 and 3.7 are successful. There may be a few quirks to work out, but I believe it is ready for broader testing.
show more ...
|
| e7c47bf1 | 25-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: urllib/urlparse updates for Python-3 compatibility |
| 0f24c169 | 25-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config fblaslapack: use isIBM instead of manual test |
| 014d2814 | 25-Sep-2018 |
Satish Balay <balay@mcs.anl.gov> |
ptscotch: fix tarball install for --download-ptscotch
Reported-by: Randall Mackie <rlmackie862@gmail.com> |
| 48114c03 | 21-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: Python-3 (and >=2.6) uses __self__ instead of im_self to identify bound methods |
| 361dede8 | 23-Sep-2018 |
Barry Smith <bsmith@mcs.anl.gov> |
Test harness does not have requires: TODO it has TODO: reason
Commit-type: bug-fix, testing-fix, style-fix |
| fd314934 | 22-Sep-2018 |
Barry Smith <bsmith@mcs.anl.gov> |
Change outdated HAVE_VECCUDA macro to simply HAVE_CUDA for clarity/ease of maintenance.
Commit-type: style-fix |
| b8b3d021 | 19-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: misc python2/3 compatibility |
| bb3dd2f6 | 19-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: futurize filter()
Returns a list in Python-2, but a filter object in Python-3. There are many places that test isinstance(f, list) to distinguish strings from lists, but a filter object beh
config: futurize filter()
Returns a list in Python-2, but a filter object in Python-3. There are many places that test isinstance(f, list) to distinguish strings from lists, but a filter object behaves like a list for most purposes.
show more ...
|
| 50f8d48f | 19-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config executeShellCommand: support chained commands and non-shell
The present approach of concatenating strings is problematic if paths contain spaces or special characters. We should always use l
config executeShellCommand: support chained commands and non-shell
The present approach of concatenating strings is problematic if paths contain spaces or special characters. We should always use lists instead of strings, but I don't have the patience to convert all call sites right now. I have converted a representative sample, however, to demonstrate that the approach works. This involved a new function Script.executeShellCommandSeq() that takes a sequence/list of commands to be run.
A legacy pattern in BuildSystem has been to use chained sequences of the form
cd to/dir && run command
instead of using the cwd keyword argument. This commit fixes many such instances to use the cwd argument.
show more ...
|
| 2d964b9f | 17-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: Use io.StringIO instead of StringIO.StringIO
Portable to Python-3. |
| ee9ef2a6 | 17-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: fix typo reference variable from enclosing scope instead of argument |
| a0ef829d | 17-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: use idiomatic loop instead of map |
| 28bb3262 | 17-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: AttributeError instead of RuntimeError to report missing attribute
Python-2 catches RuntimeError thrown by __getattr__, but Python-3 does not. |
| 39110cb1 | 17-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: return list instead of filter object |
| bbfe0604 | 14-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
python: check for attr close to identify files
Python-3 files are not nicely identified by inheriting from a public file object. Probably better in the long run to make the interface clear about wh
python: check for attr close to identify files
Python-3 files are not nicely identified by inheriting from a public file object. Probably better in the long run to make the interface clear about what is being passed, e.g., by a keyword argument. But for now, just change the test to work with both Python-2 and Python-3.
show more ...
|
| f20c2d65 | 14-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
python: use sort(key=) instead of sort with cmp function
For Python-3, but also cleaner. |
| a01632ec | 14-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: eschew dict.iteritems() for dict.items()
Fast enough in Python-2 and the only way in Python-3. |
| 6fd8bb9b | 14-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: abandon popen2 in favor of subprocess (python2 and python3) |
| 400be2da | 13-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
python: convert leading tabs to spaces |
| 3b049ba2 | 13-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config RDict: fix dict.has_key to be compatible with Python-3 |
| e8ed534b | 13-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: add base.setup to delay pushLanguage until after Script.setup
Suggested-by: Matt Knepley <knepley@gmail.com> |
| c6ef1b5b | 13-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: use open() instead of file() to open files
This is the recommended usage and file is not defined in Python-3. |
| 7cfe7613 | 13-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: remove "import user"; deprecated in Python 2.6 and removed in 3
I can't imagine why anyone would want this unpredictable behavior in a configuration system in the first place. |
| 7b8851e6 | 13-Sep-2018 |
Jed Brown <jed@jedbrown.org> |
config: remove obsolete workarounds for Python <=2.5 |