Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Dec 5, 2024
1 parent 75b25c4 commit 403531e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pysr/julia_registry_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ def backup_juliaregistrypref():
# If the user has not set the JULIA_PKG_SERVER_REGISTRY_PREFERENCE environment variable, then
# we set it temporarily, and unset it when we are done.
old_value = None

# We will set the JULIA_PKG_SERVER_REGISTRY_PREFERENCE to `eager`.
# Note: in upstream Julia/Pkg, the default value is `conservative`.
# Therefore, by setting it to `eager`, we are overriding the default.
# Because we are deviating from the default behavior that would normally be expected in Julia,
# I think that it's a good idea to print an informational message, so that the user is aware
# of the change being made.
info_msg = """\
INFO: Attempting to use the `eager` registry flavor of the Julia General registry from the Julia Pkg server.
If any errors are encountered, try setting the `{name}` environment variable to `conservative`.
Expand Down

0 comments on commit 403531e

Please sign in to comment.