Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into python-3.13-wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAntoineSchmidtQC committed Dec 5, 2024
2 parents baba5dc + d054e23 commit 88e7834
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
5 changes: 0 additions & 5 deletions build_tools/prepare_macos_wheel.sh

This file was deleted.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ test-command = "pytest {package}/tests/test_matrices.py"

[tool.cibuildwheel.macos]
before-build = [
"bash build_tools/prepare_macos_wheel.sh",
"/Users/runner/micromamba-bin/micromamba create -y -p $MAMBA_ROOT_PREFIX/envs/build -c conda-forge jemalloc-local \"xsimd<11|>12.1\" llvm-openmp",
]

[tool.cibuildwheel.macos.environment]
LDFLAGS="-Wl,-rpath,$CONDA/envs/build/lib -L$CONDA/envs/build/lib -headerpad_max_install_names"
CFLAGS="-I$CONDA/envs/build/include"
CXXFLAGS="-I$CONDA/envs/build/include"
LDFLAGS="-Wl,-rpath,$MAMBA_ROOT_PREFIX/envs/build/lib -L$MAMBA_ROOT_PREFIX/envs/build/lib -headerpad_max_install_names"
CFLAGS="-I$MAMBA_ROOT_PREFIX/envs/build/include"
CXXFLAGS="-I$MAMBA_ROOT_PREFIX/envs/build/include"
CXX="/usr/bin/clang++"
CC="/usr/bin/clang"
JE_INSTALL_SUFFIX="local"
Expand Down
6 changes: 5 additions & 1 deletion src/tabmat/formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from formulaic import ModelMatrix, ModelSpec
from formulaic.errors import FactorEncodingError
from formulaic.materializers import FormulaMaterializer
from formulaic.materializers.base import EncodedTermStructure
from formulaic.materializers.types import FactorValues, NAAction, ScopedTerm
from formulaic.parser.types import Term
from formulaic.transforms import stateful_transform
Expand All @@ -24,6 +23,11 @@
from .sparse_matrix import SparseMatrix
from .split_matrix import SplitMatrix

try:
from formulaic.materializers.base import EncodedTermStructure
except ImportError:
from formulaic.materializers.types.formula_materializer import EncodedTermStructure


class TabmatMaterializer(FormulaMaterializer):
"""Materializer for pandas input and tabmat output."""
Expand Down

0 comments on commit 88e7834

Please sign in to comment.