Skip to content

Commit

Permalink
Install scipy dependency from pypi (#202)
Browse files Browse the repository at this point in the history
* Install scipy via pip if not installed

* Remove LD_PRELOAD from CI

* Pip install scipy during build phase

* Don't install deps

* Try removing scipy before installing

* Remove undefined keyword

* Explicitly build package before docs
  • Loading branch information
sethaxen authored Jul 27, 2022
1 parent 70735a9 commit 4070390
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set LD_PRELOAD
run: echo "LD_PRELOAD=$HOME/.julia/conda/3/lib/libstdc++.so" >> $GITHUB_ENV
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/documenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set LD_PRELOAD
run: echo "LD_PRELOAD=$HOME/.julia/conda/3/lib/libstdc++.so" >> $GITHUB_ENV
- uses: julia-actions/setup-julia@v1
- name: Cache CmdStan
id: cache-cmdstan
Expand All @@ -33,6 +31,7 @@ jobs:
tar -xzpf ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}.tar.gz -C ${{ env.CMDSTAN_PATH }}
make -C ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}/ build
shell: bash
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-docdeploy@v1
env:
JULIA_CMDSTAN_HOME: ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}/ # required by CmdStan.jl
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/futures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
arviz_version: "release"
steps:
- uses: actions/checkout@v2
- name: Set LD_PRELOAD
run: echo "LD_PRELOAD=$HOME/.julia/conda/3/lib/libstdc++.so" >> $GITHUB_ENV
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.jl.*.cov
*.jl.mem
/deps/deps.jl
/deps/build.log
/docs/src/quickstart.md
/docs/src/creating_custom_plots.md
/docs/src/*.log
Expand Down
7 changes: 7 additions & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Conda

# try to install scipy with pip if not yet installed
# temporary workaround for https://github.com/arviz-devs/ArviZ.jl/issues/188
Conda.pip_interop(true)
Conda.pip("uninstall -y", "scipy")
Conda.pip("install", "scipy")

2 comments on commit 4070390

@sethaxen
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request updated: JuliaRegistries/General/65025

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.0 -m "<description of version>" 407039011ca9d9b2bb219d176e1d86d6be94e202
git push origin v0.6.0

Please sign in to comment.