Skip to content

Commit

Permalink
Disabling pydp due to issues on macos
Browse files Browse the repository at this point in the history
- importing pydp after syft causes a core dump
  OpenMined/PyDP#393
  • Loading branch information
madhavajay committed Sep 16, 2021
1 parent 071b48e commit 0d61cc6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/syft-pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
if: startsWith(runner.os, 'macos')
run: |
brew install libomp
curl -sSf https://lets.tunshell.com/init.sh | sh -s -- T X6ay56qPbv7b53K6XrlTsn HwYnh3IWYbHX64GqE1ctin au.relay.tunshell.com
pip uninstall python-dp -y
- name: Run normal tests
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/syft-version_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ jobs:
if: startsWith(runner.os, 'macos')
run: |
brew install libomp
pip uninstall python-dp -y
- name: Run supported library tests
run: |
Expand Down
6 changes: 3 additions & 3 deletions packages/syft/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ libs =
pandas
petlib
pillow>=8.3.1 # security-issues
python-dp
# python-dp
statsmodels
tenseal
xgboost>=1.4
Expand Down Expand Up @@ -161,7 +161,7 @@ ci-libs =
; petlib #install-custom-dependency
; pillow>=8.1.2,<=8.2.0 #install-custom-dependency
; pyarrow #install-custom-dependency
; python-dp #install-custom-dependency
# ; python-dp #install-custom-dependency
; statsmodels #install-custom-dependency
; tenseal #install-custom-dependency
; xgboost>=1.4 #install-custom-dependency
Expand All @@ -178,7 +178,7 @@ ci-grid =
flask_sqlalchemy
names
PyInquirer
python-dp
# python-dp
requests_toolbelt
scipy
sqlalchemy>=1.4
Expand Down
8 changes: 6 additions & 2 deletions packages/syft/tests/syft/lib/pydp/client_pydp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# syft absolute
import syft as sy

pytest.importorskip("pydp")


# MADHAVA: this needs fixing
@pytest.mark.xfail(
Expand All @@ -14,6 +12,9 @@
)
@pytest.mark.vendor(lib="pydp")
def test_pydp(root_client: sy.VirtualMachineClient) -> None:
# third party
import pydp

x_ptr = root_client.pydp.algorithms.laplacian.BoundedMean(
epsilon=1, lower_bound=1, upper_bound=50, dtype="float"
)
Expand All @@ -34,6 +35,9 @@ def test_pydp(root_client: sy.VirtualMachineClient) -> None:
)
@pytest.mark.vendor(lib="pydp")
def test_pydp_functions(root_client: sy.VirtualMachineClient) -> None:
# third party
import pydp

x_ptr = root_client.pydp.algorithms.laplacian.BoundedMean(
epsilon=1, lower_bound=1, upper_bound=50, dtype="float"
)
Expand Down

0 comments on commit 0d61cc6

Please sign in to comment.