Commit graph

38 commits

Author SHA1 Message Date
Ole Schütt
4e03334606 precommit: Update Python packages and re-format 2026-02-24 17:11:52 +01:00
Zbigniew Jędrzejewski-Szmek
8cf15a2275 Sort items returned from various collect_*_deps functions
I don't think will cause any observable change in the end result, but
in general it's nicer if stable ordering is used. At least, the print
output will not change randomly between invocations.
2024-11-18 09:51:01 -08:00
Ole Schütt
12c03de0ba Reformat with black 23.3.0 2023-05-02 12:31:58 +02:00
Eisuke Kawashima
85e7b7d615
Python: PEP8 fixes (#1926)
* fix [E401](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)

* fix [E711](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)

* fix [E713](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)

* fix [E722](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)

* fix [W601](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)

* fix [W605](https://github.com/PyCQA/pycodestyle/blob/2.8.0/docs/intro.rst#error-codes)
2022-02-03 11:35:01 +01:00
Michael Banck
e2bbac8672 tools: remove angle brackets from get_revision_number output if .git is absent 2021-12-30 18:36:57 +01:00
Ole Schütt
0700962ac6 Upgrade to Fypp 3.0 2020-10-18 12:31:03 +02:00
Ole Schütt
0a94460887 Use utf8 encoding for reading files in Python 2020-09-24 21:26:15 +02:00
Ole Schütt
8ba70f2a84 Move to Python3 2020-05-24 21:28:39 +02:00
Eisuke Kawashima
40b9ef4da9 Fix typo 2020-03-12 16:48:53 +01:00
Ole Schütt
2526173855 Format all Python files with black 2020-02-25 18:17:50 +01:00
Tiziano Müller
2e6b69139d Makefile: re-use REVISION to allow override, warn user
fixes #694 by warning the user via stderr and by allowing to override
the revision by setting REVISION explicitly as a `make` argument (the
warnings will still be shown since GNU make seems to execute the shell
commands prior to determining whether it is needed at all, but that is
somewhat intentional)
2019-12-19 13:26:08 +01:00
Hans Pabst
5d0842212b
Fixed a number of typos (#609) 2019-11-08 16:37:22 +01:00
Tiziano Müller
86c1134f54 tools: make get_revision_number parse git revision standalone
this extracts correct revisions also in tarballs generated from Git in
absence of the git command
2019-09-02 13:54:24 +02:00
Tiziano Müller
787eb39715 python scripts: drop empty selftest arguments
unfortunately sourcing the script does not check the AST, rendering even
that part of the selftest useless (see for example
tools/autotune_grid/xyz_to_vab/template_parser.py which contains syntax
errors on Python 3)
2019-05-16 14:37:03 +02:00
Tiziano Müller
cd16989bba makedep: sync from DBCSR
This fixes an issue where the `public` entry in the PACKAGE files has
been ignored, but requires that from now on all PACKAGE files must
contain literal values only (which was only not the case for
`src/fm/PACKAGE` which contained a multiline string using `+` instead of
brackets).
2019-05-13 07:54:08 +02:00
Ole Schütt
5976307c2c
check_archives.py: remove rogue archives (#91) 2018-11-09 16:01:26 +01:00
Tiziano Müller
746d15cdd6 build_utils/discover_progs: fix .svn reference 2018-10-29 13:56:39 +01:00
Tiziano Müller
712a5c17de build_utils/get_rev_number: remove SVN references 2018-10-29 13:56:39 +01:00
Alfio Lazzaro
78df4409b1 allow compilation Intel+CUDA, adding LDFLAGS_C for .cu files
svn-origin-rev: 18365
2018-04-05 10:22:05 +00:00
Patrick Seewald
7fa2001d09 Updating fypp to version 2.1.1
svn-origin-rev: 18336
2018-03-20 11:37:42 +00:00
Patrick Seewald
5bdf02ce97 Patch from H. Pabst: Avoid (very) long paths ultimately leading to "make[2]: execvp: /bin/sh: Argument list too long". The issue can be reproduced when CP2K is checked out into a deeper (but still reasonable) location (file system).
svn-origin-rev: 18266
2018-02-13 14:03:20 +00:00
Patrick Seewald
d050534a7d updated fypp to official version 2.0
svn-origin-rev: 17789
2017-03-08 11:01:13 +00:00
Ole Schütt
1c6812ed5a Fypp: Update to latest development version (7a1b6f)
svn-origin-rev: 17704
2017-01-25 12:01:55 +00:00
Ole Schütt
651abcf77a Enable Fypp for every .F-file
svn-origin-rev: 17661
2017-01-07 14:55:51 +00:00
Ole Schütt
cff0d60e2e build_utils: make them python-3 compatible (Tiziano Mueller)
svn-origin-rev: 16995
2016-06-06 15:37:19 +00:00
Ole Schütt
0aa9ddc7a2 makedep.py: Add LDFLAGS_C for linking C-executables
svn-origin-rev: 16879
2016-05-03 14:28:51 +00:00
Ole Schütt
092353c568 Fix Python 2.4 and 3.5 compatibility of essential scripts
svn-origin-rev: 16682
2016-03-10 15:52:43 +00:00
Ole Schütt
44a13745ff Add self-testing option to all executable python scripts
svn-origin-rev: 16677
2016-03-09 14:07:55 +00:00
Ole Schütt
ac039b6f09 remove get_arch_code
svn-origin-rev: 15889
2015-09-16 08:12:54 +00:00
Andreas Glöß
413ab1d7cb Correct typo.
svn-origin-rev: 15309
2015-05-09 07:12:53 +00:00
Andreas Glöß
b009b49ae7 Change re-link behavior for C++ libraries.
svn-origin-rev: 15185
2015-03-23 16:08:28 +00:00
Ole Schütt
6c6daae4cb Fix check_archives.py for MacOS
svn-origin-rev: 14766
2014-11-26 15:09:02 +00:00
Ole Schütt
ba806c8e43 Makefile: Check archives for left-behind objects
svn-origin-rev: 14615
2014-11-12 13:20:18 +00:00
Ole Schütt
59e108c29d get_arch_code: Add generic Linux support (Dominik Mierzejewski)
svn-origin-rev: 14445
2014-10-19 10:50:03 +00:00
Ole Schütt
b68b3efdfb Add support for external objects (needed by PLUMED)
svn-origin-rev: 14269
2014-09-16 08:53:50 +00:00
Ole Schütt
f1330c49a7 Add support for dynamic linking
svn-origin-rev: 14268
2014-09-16 08:49:37 +00:00
Ole Schütt
a77a5fbb50 Touch up on tools/build_utils
svn-origin-rev: 14258
2014-09-08 09:18:30 +00:00
Ole Schütt
39e941f4f9 Add directory tools/build_utils
svn-origin-rev: 14257
2014-09-08 09:08:34 +00:00