Skip to content

Use setup.py to install dependencies in docker#434

Merged
karlicoss merged 4 commits intokarlicoss:masterfrom
wilt00:docker-setupdotpy
Jun 24, 2025
Merged

Use setup.py to install dependencies in docker#434
karlicoss merged 4 commits intokarlicoss:masterfrom
wilt00:docker-setupdotpy

Conversation

@wilt00
Copy link
Contributor

@wilt00 wilt00 commented Jan 5, 2024

While building from the Dockerfile, I ran into some issues caused by pip resolving sqlalchemy to v1 instead of v2. This PR changes the Dockerfile to install directly from setup.py, rather than indirectly from a list of dependencies, to hopefully prevent issues like this from coming up in the future.

It looks like the reason we originally went with the individual dependencies approach is because setuptools-scm needs to get the version from the git history. Since we don't want to bloat the container by copying the entire git history into it, setuptools-scm can't find the version and the installation fails. Since then, it looks like setuptools-scm has added an override environment variable which we can use to pass in a version explicitly during the build.

@karlicoss
Copy link
Owner

Thanks! Sorry just noticed -- somehow didn't receive the email notification

@wilt00 wilt00 force-pushed the docker-setupdotpy branch from 9bb2aa9 to 5cd2d7d Compare February 4, 2024 05:39
@wilt00
Copy link
Contributor Author

wilt00 commented Feb 4, 2024

Sorry for the drive-by PR @karlicoss ! I've finally fixed the CI issues here.

@karlicoss karlicoss merged commit f7bc2cf into karlicoss:master Jun 24, 2025
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.

2 participants