Skip to content
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

[CI/Build] use setuptools-scm to set __version__ #4738

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dtrifiro
Copy link

@dtrifiro dtrifiro commented May 10, 2024

By using setuptools-scm, we can get versioning information directly from git.

This PR includes changes to Dockerfiles in order correctly build including setuptools-scm.

@@ -71,7 +71,8 @@ ENV NVCC_THREADS=$nvcc_threads
ENV VLLM_INSTALL_PUNICA_KERNELS=1

ENV CCACHE_DIR=/root/.cache/ccache
RUN --mount=type=cache,target=/root/.cache/ccache \
RUN --mount=type=bind,source=.git,target=.git \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that it's required to bind-mount the .git dir in order to be able to extract git information during the build process

@dtrifiro dtrifiro marked this pull request as ready for review May 10, 2024 10:54
@dtrifiro dtrifiro force-pushed the use-setuptools-scm branch 4 times, most recently from 7e88767 to 30f1baa Compare May 13, 2024 12:47
@dtrifiro dtrifiro force-pushed the use-setuptools-scm branch 2 times, most recently from 954eef3 to d363942 Compare May 13, 2024 12:51
@dtrifiro dtrifiro marked this pull request as draft May 13, 2024 13:34
@robertgshaw2-neuralmagic
Copy link
Collaborator

@andy-neuma PTAL

1 similar comment
@robertgshaw2-neuralmagic
Copy link
Collaborator

@andy-neuma PTAL

@dtrifiro
Copy link
Author

Waiting on #4791

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants