Skip to content

Commit ca7706e

Browse files
committed
deps: downgrade PythonCall due to hanging precompilation
1 parent fcc3db3 commit ca7706e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ dependencies:
77
- pandas>=0.21.0,<3.0.0
88
- numpy>=1.13.0,<2.0.0
99
- scikit-learn>=1.0.0,<2.0.0
10-
- pyjuliacall>=0.9.15,<0.10.0
10+
- pyjuliacall>=0.9.21,<0.9.22
1111
- click>=7.0.0,<9.0.0

pysr/sr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
from .feature_selection import run_feature_selection
4040
from .julia_extensions import load_required_packages
4141
from .julia_helpers import (
42+
PythonCall,
4243
_escape_filename,
4344
_load_cluster_manager,
4445
jl_array,
@@ -1885,6 +1886,7 @@ def _run(
18851886
else:
18861887
jl_y_variable_names = None
18871888

1889+
PythonCall.GC.disable()
18881890
out = SymbolicRegression.equation_search(
18891891
jl_X,
18901892
jl_y,
@@ -1911,6 +1913,7 @@ def _run(
19111913
progress=progress and self.verbosity > 0 and len(y.shape) == 1,
19121914
verbosity=int(self.verbosity),
19131915
)
1916+
PythonCall.GC.enable()
19141917

19151918
self.julia_state_stream_ = jl_serialize(out)
19161919

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ sympy>=1.0.0,<2.0.0
22
pandas>=0.21.0,<3.0.0
33
numpy>=1.13.0,<3.0.0
44
scikit_learn>=1.0.0,<2.0.0
5-
juliacall==0.9.22
5+
juliacall==0.9.21
66
click>=7.0.0,<9.0.0
77
setuptools>=50.0.0

0 commit comments

Comments
 (0)