Skip to content

Fix for Issue #159 #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 5 additions & 4 deletions .github/workflows/rustbca_compile_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ jobs:
run: |
git clone https://github.com/uiri/toml.git
cd toml
sudo python3 setup.py install
python3 setup.py install --root .
- name: Install HDF5 Libraries
run: |
sudo apt install libhdf5-dev
- name: test Python Bindings
run: |
sudo python3 -m pip install setuptools_rust testresources
sudo python3 setup.py install
python3 -c "from libRustBCA.pybca import *; print(simple_bca_py)"
python3 -m pip install setuptools_rust testresources
python3 setup.py install --root .
cp -r usr/local/lib/python3.8/dist-packages/libRustBCA .
python3 -c "from libRustBCA.pybca import *;"
- name: Test RustBCA
run: |
sudo cargo test --features cpr_rootfinder_netlib,hdf5_input,distributions,parry3d
Expand Down
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,18 @@

setup(
name="RustBCA",
rust_extensions=[RustExtension("libRustBCA.pybca", binding=Binding.PyO3, features=["python"])],
version="1.1.2",
rust_extensions=[
RustExtension(
"libRustBCA.pybca",
binding=Binding.PyO3,
features=["python"],
#args=["+nightly", "--edition 2018", "-Z unstable-options"],
#optional=True,
rust_version="1.56.1"

)
],
# rust extensions are not zip safe, just like C-extensions.
zip_safe=False,
)