Skip to content
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

Update auditwheel command to use --exclude #83

Merged

Conversation

devinrsmith
Copy link
Member

The internal structure of auditwheel has changed with the 6.0.0 release, causing our current script to break:

Traceback (most recent call last):
  File "//auditwheel-keep-pyarrow.py", line 4, in <module>
    from auditwheel.policy import _POLICIES
ImportError: cannot import name '_POLICIES' from 'auditwheel.policy' (/usr/local/lib/python3.10/site-packages/auditwheel/policy/__init__.py)

This PR fixes that by relying on the command line --exclude flag.

https://github.com/pypa/auditwheel/releases/tag/6.0.0

The internal structure of auditwheel has changed with the 6.0.0 release, causing our current script to break:

```
Traceback (most recent call last):
  File "//auditwheel-keep-pyarrow.py", line 4, in <module>
    from auditwheel.policy import _POLICIES
ImportError: cannot import name '_POLICIES' from 'auditwheel.policy' (/usr/local/lib/python3.10/site-packages/auditwheel/policy/__init__.py)
```

This PR fixes that by relying on the command line `--exclude` flag.

https://github.com/pypa/auditwheel/releases/tag/6.0.0
@devinrsmith devinrsmith self-assigned this Feb 27, 2024
@devinrsmith devinrsmith merged commit 438458d into deephaven:main Feb 28, 2024
3 checks passed
devinrsmith added a commit to devinrsmith/jpy that referenced this pull request Mar 12, 2024
The internal structure of auditwheel has changed with the 6.0.0 release, causing our current script to break:

```
Traceback (most recent call last):
  File "/home/runner/work/jpy/jpy/.github/env/Linux/auditwheel-keep-libjvm.py", line 4, in <module>
    from auditwheel.policy import _POLICIES
ImportError: cannot import name '_POLICIES' from 'auditwheel.policy' (/opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/auditwheel/policy/__init__.py)
```

This PR fixes that by relying on the command line `--exclude` flag.

Very similar to PR from deephaven/deephaven-server-docker#83

https://github.com/pypa/auditwheel/releases/tag/6.0.0
devinrsmith added a commit to jpy-consortium/jpy that referenced this pull request Mar 12, 2024
The internal structure of auditwheel has changed with the 6.0.0 release, causing our current script to break:

```
Traceback (most recent call last):
  File "/home/runner/work/jpy/jpy/.github/env/Linux/auditwheel-keep-libjvm.py", line 4, in <module>
    from auditwheel.policy import _POLICIES
ImportError: cannot import name '_POLICIES' from 'auditwheel.policy' (/opt/hostedtoolcache/Python/3.12.2/x64/lib/python3.12/site-packages/auditwheel/policy/__init__.py)
```

This PR fixes that by relying on the command line `--exclude` flag.

Very similar to PR from deephaven/deephaven-server-docker#83

https://github.com/pypa/auditwheel/releases/tag/6.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant