MilesCranmer commited on
Commit
88531a9
1 Parent(s): 3972e78

Manage backend version from version.py

Browse files
Files changed (2) hide show
  1. pysr/sr.py +2 -2
  2. pysr/version.py +1 -0
pysr/sr.py CHANGED
@@ -15,7 +15,7 @@ from sklearn.base import BaseEstimator, RegressorMixin
15
  from collections import OrderedDict
16
  from hashlib import sha256
17
 
18
- from .version import __version__
19
 
20
  is_julia_warning_silenced = False
21
 
@@ -338,7 +338,7 @@ def _add_sr_to_julia_project(Main, io_arg):
338
  Main.spec = Main.PackageSpec(
339
  name="SymbolicRegression",
340
  url="https://github.com/MilesCranmer/SymbolicRegression.jl",
341
- rev="v0.7.8",
342
  )
343
  Main.eval(f"Pkg.add(spec, {io_arg})")
344
 
 
15
  from collections import OrderedDict
16
  from hashlib import sha256
17
 
18
+ from .version import __version__, __symbolic_regression_jl_version__
19
 
20
  is_julia_warning_silenced = False
21
 
 
338
  Main.spec = Main.PackageSpec(
339
  name="SymbolicRegression",
340
  url="https://github.com/MilesCranmer/SymbolicRegression.jl",
341
+ rev="v" + __symbolic_regression_jl_version__,
342
  )
343
  Main.eval(f"Pkg.add(spec, {io_arg})")
344
 
pysr/version.py CHANGED
@@ -1 +1,2 @@
1
  __version__ = "0.7.4"
 
 
1
  __version__ = "0.7.4"
2
+ __symbolic_regression_jl_version__ = "0.7.8"