Skip to content

Commit eb32d05

Browse files
committed
cleanup
1 parent c91fd17 commit eb32d05

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/dist-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ jobs:
121121
- name: Build SDist
122122
working-directory: ./bindings/python
123123
run: |
124+
export LIBBSON_INSTALL_DIR=$(pwd)/libbson
124125
just build-libbson
125126
python -m build --sdist .
126127

bindings/python/build-libbson.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ echo "MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET}"
3636
echo "CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES}"
3737
echo "LIBBSON_INSTALL_DIR=${LIBBSON_INSTALL_DIR}"
3838

39+
# Activate the virtualenv for the cmake build.
40+
if [ -f $(pwd)/.venv/Scripts ]; then
41+
. $(pwd)/.venv/Scripts/activate
42+
else
43+
. $(pwd)/.venv/bin/activate
44+
fi
45+
3946
# Build libbson
4047
pushd "$WORKDIR"
4148
git checkout "$LIBBSON_VERSION"

bindings/python/justfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ test *args:
2828

2929
lint:
3030
uv sync --no-install-project --dev
31-
uv run --no-build pre-commit run --hook-stage manual --all-files
32-
uv run --no-build check-manifest -v
31+
uv run --no-project pre-commit run --hook-stage manual --all-files
32+
uv run --no-project check-manifest -v
3333

3434
docs:
3535
uv sync --no-install-project --group docs
36-
uv run --no-build sphinx-build -T -b html {{sphinx_opts}} {{docs_build}}/html
36+
uv run --no-project sphinx-build -T -b html {{sphinx_opts}} {{docs_build}}/html
3737

3838
docs-serve:
3939
uv sync --no-install-project --group docs --group dev
40-
urn run --no-build sphinx-autobuild --watch ./pymongoarrow docs {{docs_build}}/html
40+
urn run --no-project sphinx-autobuild --watch ./pymongoarrow docs {{docs_build}}/html
4141

4242
docs-linkcheck *args:
4343
uv sync --no-install-project --group docs
44-
PYTHONHASHSEED=0 uv run --no-build python -m sphinx -q -b linkcheck docs {{docs_build}}/linkcheck {{args}}
44+
PYTHONHASHSEED=0 uv run --no-project python -m sphinx -q -b linkcheck docs {{docs_build}}/linkcheck {{args}}

0 commit comments

Comments
 (0)