1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

remove flax from setup.py

This commit is contained in:
sayakpaul
2025-08-26 15:06:01 +02:00
parent 532f41c999
commit 211f84e997
2 changed files with 1 additions and 10 deletions

View File

@@ -84,7 +84,6 @@ To create the package for PyPI.
you need to go back to main before executing this.
"""
import os
import re
import sys
@@ -100,7 +99,6 @@ _deps = [
"compel==0.1.8",
"datasets",
"filelock",
"flax>=0.4.1",
"hf-doc-builder>=0.3.0",
"huggingface-hub>=0.34.0",
"requests-mock==1.10.0",
@@ -245,14 +243,8 @@ extras["gguf"] = deps_list("gguf", "accelerate")
extras["optimum_quanto"] = deps_list("optimum_quanto", "accelerate")
extras["torchao"] = deps_list("torchao", "accelerate")
if os.name == "nt": # windows
extras["flax"] = [] # jax is not supported on windows
else:
extras["flax"] = deps_list("jax", "jaxlib", "flax")
extras["dev"] = (
extras["quality"] + extras["test"] + extras["training"] + extras["docs"] + extras["torch"] + extras["flax"]
)
extras["dev"] = extras["quality"] + extras["test"] + extras["training"] + extras["docs"] + extras["torch"]
install_requires = [
deps["importlib_metadata"],

View File

@@ -7,7 +7,6 @@ deps = {
"compel": "compel==0.1.8",
"datasets": "datasets",
"filelock": "filelock",
"flax": "flax>=0.4.1",
"hf-doc-builder": "hf-doc-builder>=0.3.0",
"huggingface-hub": "huggingface-hub>=0.34.0",
"requests-mock": "requests-mock==1.10.0",