diff --git a/.github/workflows/publish_wheels.yml b/.github/workflows/publish_wheels.yml index 366b790..72ee7ea 100644 --- a/.github/workflows/publish_wheels.yml +++ b/.github/workflows/publish_wheels.yml @@ -51,6 +51,14 @@ jobs: - name: Install cibuildwheel run: python -m pip install cibuildwheel + + # Install jaxlib from source for MacOS. Otherwise, jaxlib + # will have AVX instructions and the MacOS GitHub runners do not. + - name: Jaxlib source + run: | + if [[ ${{ matrix.os }} == 'macOS-latest' ]]; then + pip install jaxlib --no-binary + fi - name: Build wheels run: python -m cibuildwheel --output-dir dist diff --git a/pyproject.toml b/pyproject.toml index 36ee4ac..00eb7a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [tool.black] line-length = 100 -target-version = ['py39','py310','py311'] +target-version = ['py310','py311'] [tool.cibuildwheel] before-build = "pip install setuptools wheel numpy" diff --git a/setup.py b/setup.py index b82971f..7577196 100644 --- a/setup.py +++ b/setup.py @@ -70,7 +70,7 @@ def run(self): packages=find_packages("src"), package_dir={"": "src"}, package_data={"": ["src/tfc/py.typed"]}, - python_requires=">=3.9", + python_requires=">=3.10", include_package_data=True, ext_modules=[BF], install_requires=[