Skip to content

Commit

Permalink
Removing Python 3.9, since jaxlib doesn't support it anymore.
Browse files Browse the repository at this point in the history
* Trying to build jaxlib for MacOS from source in the GitHub action to
  fix AVX instruction issue.
  • Loading branch information
leakec committed Sep 15, 2024
1 parent 3ff8785 commit 548c778
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit 548c778

Please sign in to comment.