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

Merged
merged 1 commit into from
Jan 17, 2025

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

@marcus-oscarsson
Copy link
Member

Looks good to me

@fabcor-maxiv fabcor-maxiv marked this pull request as ready for review January 17, 2025 09:05
@fabcor-maxiv
Copy link
Contributor Author

I updated the comment, I think it is more accurate like this.

@marcus-oscarsson
Copy link
Member

@fabcor-maxiv, thanks could you please rebase ?

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
@marcus-oscarsson marcus-oscarsson merged commit 4ec0530 into mxcube:develop Jan 17, 2025
4 checks passed
@fabcor-maxiv fabcor-maxiv deleted the conda-python-ldap branch January 17, 2025 10:12
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.

2 participants