Allow 'nosource: True' in PythonPackage extensions#3305
Allow 'nosource: True' in PythonPackage extensions#3305smoors merged 1 commit intoeasybuilders:developfrom
Conversation
this can be worked around by setting SETUPTOOLS_SCM_PRETEND_VERSION envvar: 'preinstallopts': 'export SETUPTOOLS_SCM_PRETEND_VERSION=%(version)s && ' |
Works, thanks! |
|
Test report by @Flamefire Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
How insane would it be to let |
Hm, I can't think of any issues. We always want the version of the software as the version. And if this avoids even trying to use git (where either the binary or the |
i agree. there will be slight differences in exceptional cases with a git checkout of a commit. for example, for >>> import gbprocess
>>> gbprocess.__version__
'4.0.0.post2.dev0+g26119ab.d20240418'in gitlab this commit is tagged as |
|
Going in, thanks @Flamefire! |
(created using
eb --new-pr)To be used with easybuilders/easybuild-framework#4506
Motivation is a use case like: https://github.com/ComputeCanada/easybuild-easyconfigs/blob/5573c66a91fb2990723da630e7eb690957a59f46/easybuild/easyconfigs/d/DuckDB/DuckDB-0.10.1-GCCcore-12.3.0.eb
I.e. we want to build using some build system which has a python package included or as a build artifact. Hence we don't need nor want to use a source.
With these 2 PRs it gets to the correct
pip install .in the right directory. I couldn't test further as it fails to get the version usingsetuptools_scmwhich tries to usegiton a source-only tarball.