Skip to content

Commit 5b7cb05

Browse files
authored
Attempt to fix CI (#111)
* Allow MIT-0 license pixi v0.70.2 pulls in borrow-or-share via uv-resolver, which is licensed as MIT No Attribution. * Build package with rattler-build instead of pixi build Invoke rattler-build directly on the recipe with --env-isolation none so the build script inherits the host environment. The pixi build backend isolates the environment, which prevented the GITHUB_ACTIONS check in the recipe from applying the short CARGO_HOME path on CI. This broke the Windows build once pixi v0.70.2 introduced a snapshot file long enough to exceed MAX_PATH. The c_compiler variant moves from the manifest to variants.yaml, and the upload script now looks for packages in rattler-build's output directory.
1 parent 75e42ff commit 5b7cb05

5 files changed

Lines changed: 19 additions & 20 deletions

File tree

deny.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ allow = [
1111
"CDLA-Permissive-2.0",
1212
"ISC",
1313
"MIT",
14+
"MIT-0",
1415
"MPL-2.0",
1516
"Unicode-3.0",
1617
"Zlib",

pixi.toml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ channels = ["https://prefix.dev/conda-forge"]
44
description = "Package Management Made Easy!"
55
name = "pixi-gui"
66
platforms = ["osx-arm64", "linux-64", "win-64", "osx-64"]
7-
preview = ["pixi-build"]
8-
9-
[workspace.target.win.build-variants]
10-
c_compiler = ["vs2019"]
117

128
[system-requirements]
139
libc = "2.34"
@@ -132,17 +128,3 @@ update-pixi = "python scripts/bump_pixi.py update"
132128
[environments]
133129
default = ["lint", "automation"]
134130
packaging = { features = ["packaging"], no-default-feature = true }
135-
136-
#
137-
# Packaging / Pixi Build
138-
#
139-
140-
[package]
141-
name.workspace = true
142-
143-
[package.build.backend]
144-
channels = [
145-
"https://prefix.dev/conda-forge",
146-
]
147-
name = "pixi-build-rattler-build"
148-
version = "*"

recipe/variants.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
c_compiler:
2+
- if: win
3+
then: vs2019

scripts/build_package.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,20 @@ def build() -> None:
4242
env = os.environ.copy()
4343
env["PIXI_GUI_VERSION"] = pixi_gui_version
4444

45-
subprocess.run(["pixi", "build", "--verbose"], env=env, check=True)
45+
subprocess.run(
46+
[
47+
"rattler-build",
48+
"build",
49+
"--recipe",
50+
"recipe/recipe.yaml",
51+
"--env-isolation",
52+
"none",
53+
"--channel",
54+
"https://prefix.dev/conda-forge",
55+
],
56+
env=env,
57+
check=True,
58+
)
4659
print("Build completed successfully")
4760

4861

scripts/upload_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def find_packages() -> Generator[Path, None, None]:
9-
yield from Path(".").glob("*.conda")
9+
yield from Path("output").rglob("*.conda")
1010

1111

1212
def upload_package(package_path: Path) -> None:

0 commit comments

Comments
 (0)