Skip to content

Commit

Permalink
Revert "fix: try moving to python juliapkg.json"
Browse files Browse the repository at this point in the history
This reverts commit 07a359d.
  • Loading branch information
MilesCranmer committed May 4, 2024
1 parent 84bbcf7 commit 5824cd8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dynamic = ["dependencies"]
[tool.setuptools]
packages = ["pysr", "pysr._cli", "pysr.test"]
include-package-data = false
package-data = {pysr = ["juliapkg.json"]}

[tool.setuptools.dynamic]
dependencies = {file = "requirements.txt"}
Expand Down
9 changes: 1 addition & 8 deletions pysr/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import juliapkg

juliapkg.require_julia("~1.6.7, ~1.7, ~1.8, ~1.9, =1.10.0, ^1.10.3")
juliapkg.add(
"SymbolicRegression", "8254be44-1295-4e6a-a16d-46603ac705cb", version="=0.24.4"
)
juliapkg.add("Serialization", "9e88b42a-f829-5b0c-bbe9-9e923198166b", version="1")

# This must be imported as early as possible to prevent
# library linking issues caused by numpy/pytorch/etc. importing
# old libraries:
Expand All @@ -26,6 +18,7 @@
"sklearn_monkeypatch",
"sympy2jax",
"sympy2torch",
"Problem",
"install",
"PySRRegressor",
"best",
Expand Down
13 changes: 13 additions & 0 deletions pysr/juliapkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"julia": "~1.6.7, ~1.7, ~1.8, ~1.9, =1.10.0, ^1.10.3",
"packages": {
"SymbolicRegression": {
"uuid": "8254be44-1295-4e6a-a16d-46603ac705cb",
"version": "=0.24.4"
},
"Serialization": {
"uuid": "9e88b42a-f829-5b0c-bbe9-9e923198166b",
"version": "1"
}
}
}
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pandas>=0.21.0,<3.0.0
numpy>=1.13.0,<2.0.0
scikit_learn>=1.0.0,<2.0.0
juliacall==0.9.20
juliapkg==0.1.11
click>=7.0.0,<9.0.0
setuptools>=50.0.0
typing_extensions>=4.0.0,<5.0.0; python_version < "3.8"

0 comments on commit 5824cd8

Please sign in to comment.