ansible / ansible/pylibssh

[packaging] Explore compiling `libssh` statically

Open
#747 0 comments 0 reactions 1 assignee Claimed by @webknjaz View on GitHub
Dominant language
Cython
Stars
79
Forks
47
Avg merge
1d 11h
Merged PRs (30d)
6

Description

This would need to only concern wheels published to PyPI (manylinux et al.)
The downstreams should still retain the ability to link against the OS-provided libs.

Some research suggests that this is implementable though `extra_objects` and `-fPIC`:

* https://cython-users.narkive.com/ocKNbCAj/wrap-c-static-library
* https://groups.google.com/g/cython-users/c/gQQ1JUtckBE/m/hGb78MrNEGYJ
* https://github.com/cython/cython/blob/404d958/Cython/Distutils/extension.py#L21
* https://github.com/cython/cython/blob/404d958/Cython/Debugger/Tests/TestLibCython.py#L138
* https://github.com/cython/cython/blob/404d958/Cython/Build/Dependencies.py#L151
* https://stackoverflow.com/a/2106051
* https://setuptools.pypa.io/en/latest/deprecated/distutils/setupscript.html#other-options
* https://setuptools.pypa.io/en/latest/userguide/ext_modules.html#extension-api-reference

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.