From e09aef371d67066253d8a2ac11f9756320ce9145 Mon Sep 17 00:00:00 2001 From: planetmarshall Date: Sat, 30 Dec 2023 14:38:51 +0000 Subject: [PATCH] pass setuptools_scm config to sdist --- .github/workflows/build_deploy.yml | 4 +++- README.md | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index c51b2aa..ecbc922 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -124,9 +124,11 @@ jobs: python-version: "3.x" - name: Install build - run: pip install build + run: pip install --user build - name: Build SDist + env: + SETUPTOOLS_SCM_OVERRIDES_FOR_PILLOW_JPLS: 'local_scheme = "no-local-version"' run: python -m build --sdist - uses: actions/upload-artifact@v3 diff --git a/README.md b/README.md index 2c1321c..5b49876 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,11 @@ To use system dependencies instead of using conan: ``` python -m build -C cmake.args="--preset sysdeps" -pip install dist/.whl +pip install dist/*.whl ``` Note that wheels created this way are unlikely to be portable and are suitable only for local use. A Dockerfile is provided -in the root repository to install the prerequisites, see also the CI job that builds a wheel using only system +in the root of the repository to install the prerequisites, see also the CI job that builds a wheel using only system dependencies. Tests