Skip to content

Commit

Permalink
temporary fix to support fake import for azure.identity
Browse files Browse the repository at this point in the history
  • Loading branch information
fjxmlzn committed Jan 29, 2025
1 parent dbb45d6 commit 4305f65
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pe/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from generalimport import generalimport
import generalimport
from generalimport import generalimport as optionalimport

generalimport(
# This is a temporary hack to support libraries such as azure.identity
generalimport.top._assert_no_dots = lambda names: ...

optionalimport(
"blobfile",
"torch",
"imageio",
Expand All @@ -13,17 +17,17 @@
"See https://microsoft.github.io/DPSDA/getting_started/installation.html for more details."
),
)
generalimport(
optionalimport(
"gdown",
"openai",
"tenacity",
"azure",
"azure.identity",
"tiktoken",
"dotenv",
"sentence_transformers",
"protobuf",
"sentencepiece",
"fschat",
"fastchat",
"transformers",
"accelerate",
message=(
Expand Down

0 comments on commit 4305f65

Please sign in to comment.