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

Add extension_module in python example #3358

Merged

Conversation

Maxyme
Copy link
Contributor

@Maxyme Maxyme commented May 10, 2022

Using cargo build was breaking because of relocation errors like this:

relocation R_X86_64_32S against symbol `_Py_ctype_table' can not be used when making a shared object; recompile with -fPIC

Adding features = ["extension-module"] will now skip linking against libpython.so and fix the errors above when running cargo build

More information: https://pyo3.rs/main/features.html#extension-module.

…hon.so and fix cargo build on unix systems
@ritchie46
Copy link
Member

Thanks.

@ritchie46 ritchie46 merged commit eaabf69 into pola-rs:master May 10, 2022
@Maxyme Maxyme deleted the add_extension_module_for_python_example branch May 10, 2022 19:55
moritzwilksch pushed a commit to moritzwilksch/polars that referenced this pull request May 29, 2022
…hon.so and fix cargo build on unix systems (pola-rs#3358)

Co-authored-by: Maxime Jacques <maxime@mims.ai>
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.

None yet

2 participants