support for license parameter in easyconfig#526
support for license parameter in easyconfig#526boegel merged 19 commits intoeasybuilders:developfrom
Conversation
unit tests work again
|
@stdweird: Did you check the diff? The move of Maybe you should do the move first in a separate pull request, to make things clear? That will make is significantly easier to review. |
easybuild/tools/options.py
Outdated
|
see #543 for extra constants to be defined |
|
@boegel splitting up the shufling around in a separate pullrequest will take some effort, and quite a bit of code blocks have been moved around. so the diff will always contain large blocks or red and green. btw, i actually wne tthrough all of the code to clean it up, and it was well worth it. this shouldn't take more then an hour to review in detail |
|
OK, point taken, reproducing the shuffling around + fixes made in that code in another pull request would be too much work, and thus not worth the effort. I'll bite the bullet and review this ASAP, but it would be nice if you open a separate pull request for the actual features in the future (although I know that in reality the shuffling around and implementing something new overlaps). On a scale of 0 to 10, how eager are you to get the licensing stuff polished to be ready for v1.3? |
|
i would like the refactoring and cleanup in 1.3. polishing up licensing implies adding lots of licenses and also changing the easyconfigs.having a license skeleton in 1.3 would help though (users can extend it themself since it uses the subclassing for discovery) |
There was a problem hiding this comment.
add PYTHON_LIBDIR constant and set it equal to distutils.sysconfig.get_python_lib(prefix=''), cfr easybuilders/easybuild-easyblocks#141
the OS_NAME and OS_VERSION constants that were merged in with #547 will also need to be aded here
There was a problem hiding this comment.
Adding OS_NAME and friends is a part of stdweird#17.
|
Merging this with develop is a nightmare... :( |
Conflicts: easybuild/framework/easyblock.py easybuild/framework/easyconfig.py easybuild/main.py easybuild/tools/options.py easybuild/tools/repository.py setup.py
There was a problem hiding this comment.
(2) makes no sense, use (2,) if you want a tuple
|
Besides the minor remarks, and stdweird#17 that should be merged in to fix the merging and missing code that was merged into Two things though:
with this branch: with current
|
resync with develop, fix the many conflicts, and make sure changes made in easyconfig.py are integrated in this branch too
There was a problem hiding this comment.
is it only during installation? (do we need to add this to description of license_server as well)
There was a problem hiding this comment.
This is just during installation, imho.
The software package itself takes this information and generates a license file, EasyBuild doesn't do that.
|
@boegel fixed broken unittest (eb -a was broken) |
|
Did you check the debug logging issue as well? |
|
@boegel, i'm on it. btw this should be docuemnted somewhere (it's for developers only) enables early debugging (unset or set to 0 to disable) enables debugging in fancylogger, to debug issues with logging (eg in this case) |
|
@stdweird: Please open a documentation issue in the easybuild repo, i.e. here: https://github.com/hpcugent/easybuild/issues?state=open |
|
@boegel logging is fixed, all unittests pass |
|
Unit tests pass on my end as well, fat FFTW build works on produced expected debug log messages. Merging it in! |
support for license parameter in easyconfig
The license parameter is supported but not mandatory. More license classes need to be added first. The value in the easyconfig is a constant, not a string ie
not
Available licenses can be checked with
This is a techpreview, ie subject for discussion and improvement.