Add missing Find-modules and dependencies for flake8
Add Find-modules for:
- pycodestyle
- pyflakes
- flake8
Add missing dependencies for pycodestyle and pyflakes to our own build of flake8. Since LCG_96b flake8 is also available in LCG. So once all relevant branches are using it, we could decide to drop our own build.
Fixes ATLINFR-3297
Merge request reports
Activity
- Resolved by Frank Winklmeier
AE Build FAILURE
Build logfiles are available at Jenkins [AE-MERGE-REQUEST-CC7 #118]Oh dear, so it fails with:
-- Found typing: /cvmfs/sft.cern.ch/lcg/releases/LCG_95/typing/3.6.6/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages CMake Error at /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Cmake/3.14.3/Linux-x86_64/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find pyflakes (missing: _PYFLAKES_PYTHON_PATH)
I am not entirely sure how we make this compatible with multiple LCG versions. The situation is:
- If pyflakes, pycodestyle, etc. is available in LCG we need to declare a dependency on them in PyModules/CMakeLists.txt so they get installed in our own LCG area.
- If pyflakes, pycodestyle, etc. is NOT available in LCG the
pip install flake8
will simply build them as part of PyModules and they get installed via AthenaExternals.
Should I simply remove the
REQUIRED
from the find_package calls?added 1 commit
- 7e390681 - PyModules: Fix for optional LCG dependencies of flake8
AE Build SUCCESS
Build logfiles are available at Jenkins [AE-MERGE-REQUEST-CC7 #120]- Resolved by Attila Krasznahorkay
- Resolved by Attila Krasznahorkay
- Resolved by Attila Krasznahorkay
- Resolved by Attila Krasznahorkay
- Resolved by Attila Krasznahorkay
@akraszna thanks for all the comments. I have to say, I just blindly copied code from https://gitlab.cern.ch/atlas/atlasexternals/blob/master/Build/AtlasLCG/modules/Findgraphviz.cmake. But sounds like this wasn't the most optimal example to begin with. I'll try my best ;-)
Apparently I didn't update all modules quite correctly when I introduced thelcg_python_external_module(...)
function. But at least some of them do use the feature that I'm promoting here. Like for instance:https://gitlab.cern.ch/atlas/atlasexternals/blob/master/Build/AtlasLCG/modules/Findpyxml.cmake
But don't get me wrong, I'm definitely not blaming you...
added 1 commit
- f708e4d7 - PyModules: Fix for optional LCG dependencies of flake8
AE Build SUCCESS
Build logfiles are available at Jenkins [AE-MERGE-REQUEST-CC7 #123]mentioned in commit e4858947