-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow 'nosource: True' in PythonPackage extensions #3305
Allow 'nosource: True' in PythonPackage extensions #3305
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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_scm
which tries to usegit
on a source-only tarball.