Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export JULIA_PROJECT="@pysr-${PKG_VERSION}"
export JULIA_PKG_PRECOMPILE_AUTO="0"

mkdir -p "${FAKEDEPOT}"
${PYTHON} -c 'import pysr; pysr.install();'
${PYTHON} -m pysr install

# Override OpenSpecFun_jll artifact with conda-forge binaries
julia -e 'ENV["JULIA_PKG_PRECOMPILE_AUTO"] = 0; using SymbolicRegression; open(".artifact_hash.txt", "w") do io; write(io, basename(SymbolicRegression.CoreModule.OperatorsModule.SpecialFunctions.OpenSpecFun_jll.artifact_dir)); end'
Expand Down
9 changes: 5 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ source:
sha256: {{ sha256 }}

build:
number: 1
number: 2
skip: true # [win]
requirements:
host:
- python
- pip
- pyjulia >=0.6.0
- julia
# temporarily rebuilding with newest numpy because PyCall.jl ends up
# reinstalling it and we want to avoid spamming ClobberWarnings
# TODO: remove this as soon as numpy does not get spuriously installed here anymore
- numpy
# Temporary fix for PyCall.jl mistakenly re-installing numpy.
# TODO: Remove this.
- numpy >=1.24.3
Comment on lines +22 to 24

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed now

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other question I have here is: why are the other packages (pandas, sympy, scikit-learn) included in host?

- pandas
- sympy
Expand Down Expand Up @@ -51,6 +51,7 @@ test:
- python -c 'from pysr.sr import init_julia; init_julia()'
- python -c 'import pysr; pysr.install(); from pysr.sr import init_julia; init_julia()'
- python -c 'import tempfile; tempenv = tempfile.mkdtemp(); import pysr; pysr.install(tempenv); from pysr.sr import init_julia; init_julia(tempenv)'
- python -m pysr.test main

about:
home: https://github.com/MilesCranmer/PySR
Expand Down