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

Replace python-ldap with openldap in conda env #1102

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

fabcor-maxiv
Copy link
Contributor

On PyPI, python-ldap is distributed as an sdist only, not wheel. But it still requires a compilation step before installation.

Some dependencies installed with conda are rightfully ignored by Poetry. Even when python-ldap is pre-installed by conda, Poetry would still need to reinstall it which implies compilation. Indeed there is an issue in how conda packages are created and how they are installed:

So it does not make much sense to let conda install python-ldap. Instead we can instruct conda to install openldap only, and pip and Poetry should be able to compile python-ldap.

GitHub: mxcube/mxcubeweb#1510
GitHub: #849 (comment)
GitHub: conda-forge/python-ldap-feedstock#28
GitHub: #851

On PyPI, `python-ldap` is distributed as an *sdist* only, not *wheel*.
But it still requires a compilation step before installation.

Some dependencies installed with conda are rightfully ignored by Poetry.
Even when `python-ldap` is pre-installed by conda,
Poetry would still need to reinstall it which implies compilation.
Indeed there is an issue in how conda packages are created
and how they are installed:
* <python-poetry/poetry#6408 (comment)>
* <conda-forge/python-ldap-feedstock#28>

So it does not make much sense to let conda install `python-ldap`.
Instead we can instruct conda to install `openldap` only,
and pip and Poetry should be able to compile `python-ldap`.

GitHub: mxcube/mxcubeweb#1510
GitHub: mxcube#849 (comment)
GitHub: conda-forge/python-ldap-feedstock#28
GitHub: mxcube#851
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