Skip to content

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,31 @@ source:

build:
number: 0
script: | # (2)!
cmake $CMAKE_ARGS \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DBUILD_SHARED_LIBS=ON \
-B $SRC_DIR/../build \
-S .
script: # (2)!
- if: win
then: |
cmake %CMAKE_ARGS% ^
-GNinja ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%PREFIX% ^
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON ^
-DBUILD_SHARED_LIBS=ON ^
-DPython_EXECUTABLE="%PYTHON%" ^
-B build ^
-S .

cmake --build $SRC_DIR/../build --target install
cmake --build build --target install
else: |
cmake $CMAKE_ARGS \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DBUILD_SHARED_LIBS=ON \
-B $SRC_DIR/../build \
-S .

cmake --build $SRC_DIR/../build --target install

requirements:
build: # (3)!
Expand Down
21 changes: 11 additions & 10 deletions tests/integration_python/test_docs_examples.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import shutil
import sys
from pathlib import Path

import pytest
from pathlib import Path
import shutil
from syrupy.assertion import SnapshotAssertion

from .common import current_platform, get_manifest, repo_root, verify_cli_command

pytestmark = pytest.mark.skipif(
sys.platform.startswith("win"),
reason="Enable again as soon as pixi build supports windows builds with multiple platforms",
)
from .common import verify_cli_command, repo_root, current_platform, get_manifest
import sys


# pytestmark = pytest.mark.skipif(
# sys.platform.startswith("win"),
# reason="Enable again as soon as pixi build supports windows builds with multiple platforms",
# )


@pytest.mark.extra_slow
Expand Down Expand Up @@ -99,7 +100,7 @@ def test_pytorch_documentation_examples(
):
# Run the installation
verify_cli_command(
[pixi, "install", "--manifest-path", manifest],
[pixi, "lock", "--manifest-path", manifest],
env={"CONDA_OVERRIDE_CUDA": "12.0"},
)

Expand Down
Loading