Skip to content

Commit cf00eab

Browse files
authored
Merge pull request #160 from lcpp-org/drobnyjt-patch-1
Fix for Issue #159
2 parents 29ecabf + f886f02 commit cf00eab

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/rustbca_compile_check.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ jobs:
3535
run: |
3636
git clone https://github.com/uiri/toml.git
3737
cd toml
38-
sudo python3 setup.py install
38+
python3 setup.py install --root .
3939
- name: Install HDF5 Libraries
4040
run: |
4141
sudo apt install libhdf5-dev
4242
- name: test Python Bindings
4343
run: |
44-
sudo python3 -m pip install setuptools_rust testresources
45-
sudo python3 setup.py install
46-
python3 -c "from libRustBCA.pybca import *; print(simple_bca_py)"
44+
python3 -m pip install setuptools_rust testresources
45+
python3 setup.py install --root .
46+
cp -r usr/local/lib/python3.8/dist-packages/libRustBCA .
47+
python3 -c "from libRustBCA.pybca import *;"
4748
- name: Test RustBCA
4849
run: |
4950
sudo cargo test --features cpr_rootfinder_netlib,hdf5_input,distributions,parry3d

setup.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,18 @@
33

44
setup(
55
name="RustBCA",
6-
rust_extensions=[RustExtension("libRustBCA.pybca", binding=Binding.PyO3, features=["python"])],
6+
version="1.1.2",
7+
rust_extensions=[
8+
RustExtension(
9+
"libRustBCA.pybca",
10+
binding=Binding.PyO3,
11+
features=["python"],
12+
#args=["+nightly", "--edition 2018", "-Z unstable-options"],
13+
#optional=True,
14+
rust_version="1.56.1"
15+
16+
)
17+
],
718
# rust extensions are not zip safe, just like C-extensions.
819
zip_safe=False,
920
)

0 commit comments

Comments
 (0)