Skip to content

Commit

Permalink
Merge 8f2ac01 into e74b8ad
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jul 2, 2023
2 parents e74b8ad + 8f2ac01 commit f3b44e0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pysr/julia_helpers.py
Expand Up @@ -118,7 +118,14 @@ def _import_error():
def _process_julia_project(julia_project):
if julia_project is None:
is_shared = True
processed_julia_project = f"pysr-{__version__}"
juliainfo = _load_juliainfo()
julia_version = ".".join(
map(str, (juliainfo.version_major, juliainfo.version_minor))
)
python_version = ".".join(map(str, sys.version_info[:2]))
processed_julia_project = (
f"pysr-{__version__}" f"-py-{python_version}" f"-jl-{julia_version}"
)
elif julia_project[0] == "@":
is_shared = True
processed_julia_project = julia_project[1:]
Expand Down

0 comments on commit f3b44e0

Please sign in to comment.