Skip to content

Commit 211f84e

Browse files
committed
remove flax from setup.py
1 parent 532f41c commit 211f84e

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

setup.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
you need to go back to main before executing this.
8585
"""
8686

87-
import os
8887
import re
8988
import sys
9089

@@ -100,7 +99,6 @@
10099
"compel==0.1.8",
101100
"datasets",
102101
"filelock",
103-
"flax>=0.4.1",
104102
"hf-doc-builder>=0.3.0",
105103
"huggingface-hub>=0.34.0",
106104
"requests-mock==1.10.0",
@@ -245,14 +243,8 @@ def run(self):
245243
extras["optimum_quanto"] = deps_list("optimum_quanto", "accelerate")
246244
extras["torchao"] = deps_list("torchao", "accelerate")
247245

248-
if os.name == "nt": # windows
249-
extras["flax"] = [] # jax is not supported on windows
250-
else:
251-
extras["flax"] = deps_list("jax", "jaxlib", "flax")
252246

253-
extras["dev"] = (
254-
extras["quality"] + extras["test"] + extras["training"] + extras["docs"] + extras["torch"] + extras["flax"]
255-
)
247+
extras["dev"] = extras["quality"] + extras["test"] + extras["training"] + extras["docs"] + extras["torch"]
256248

257249
install_requires = [
258250
deps["importlib_metadata"],

src/diffusers/dependency_versions_table.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"compel": "compel==0.1.8",
88
"datasets": "datasets",
99
"filelock": "filelock",
10-
"flax": "flax>=0.4.1",
1110
"hf-doc-builder": "hf-doc-builder>=0.3.0",
1211
"huggingface-hub": "huggingface-hub>=0.34.0",
1312
"requests-mock": "requests-mock==1.10.0",

0 commit comments

Comments
 (0)