-
Notifications
You must be signed in to change notification settings - Fork 192
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
Require spglib~=1.15 #3944
Require spglib~=1.15 #3944
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #3944 +/- ##
========================================
Coverage 78.23% 78.23%
========================================
Files 461 461
Lines 34075 34075
========================================
Hits 26660 26660
Misses 7415 7415
Continue to review full report at Codecov.
|
@hongyi-zhao Thank you for the contribution! Could you briefly elaborate as to why increasing the minimal required minor version of this dependency addresses the linked issue? I couldn't find anything regarding this in spglib's changelog. Edit: Looks like this was just not mentioned: atztogo/spglib@54983ce |
@hongyi-zhao Could you please run this command: See also the description here: https://github.com/aiidateam/aiida-core/wiki/AiiDA-Dependency-Management#updating-dependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run this command ./util/dependency_management.py generate-all
within the repository root and then push again. Thank you!
@csadorf note that this is proposing to merge directly into |
The wrong base branch and failing tests put aside, is it really necessary to pin |
This PR does not propose to pin the dependency.
If this solves a real-world issue with the installation then we should at least consider to increase the required minor version. I don't see much reason why |
@hongyi-zhao Please rebase this branch on develop. Thx! |
Probably I succeeded toI create wheels for v1.14.1.post0 of python 3.8 https://pypi.org/project/spglib/1.14.1.post0/#files. If this can be a tentative solution, we may be able to postpone this PR. The update of functionality in v1.15 over v1.14.1 is minor, and v1.14.1 may be safer because this has survived for long time. |
@atztogo Have you succeeded in this manner? Regards |
@hongyi-zhao does the install of |
@greschd It seems does the trick now:
|
Just for some additional information. We have had similar issues before with |
As @sphuber mentioned upgrading to The published wheel fixes the issue also for We could also decide to "vendor" the
That would solve the "missing numpy" problem for all our dependencies. Related issue: #3922 Note: There is some overlap between |
Sebastiaan Huber <notifications@github.com> 于2020年4月20日周一 下午11:59写道:
Just for some additional information. We have had similar issues before
with pymatgen. It requires numpy in its setup procedure and when we
specify requirements on numpy in aiida-core those are ignored when
building pymatgen because those build requirements do not consider the
rest of the requirements. Building pymatgen then would simply install the
latest numpy which was no longer python 2 compatible, which would then
fail our build which was running python 2. Our restriction on numpy was
simply ignored.
It seems I still have this issue when installing aiida-core 1.2 with
$ pip install -e .[all]
Which will invoke the installation of pymatgen. The solution I use now it
firstly install the numpy with:
$ pip install numpy
Regards
… —
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3944 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVDTDT5PVXVYMM6A5DZ7T3RNRWOLANCNFSM4MLZV5VQ>
.
--
Hongyi Zhao <hongyi.zhao@gmail.com>
|
Note that at least for the Edit: the work-around there was to then, before installing |
@hongyi-zhao would you mind quickly checking if creating a
solves the issue with the pymatgen install? |
@sphuber @greschd You are correct. Increasing the required minor version is not strictly necessary. @greschd I've played around with adding numpy to the build-requirements as part of trying to fix the installation process for Python 3.5 and that did in fact not solve the problem with pymatgen. So I am not sure whether this would even be effective. Concerning the overlap between |
Dominik Gresch <notifications@github.com> 于2020年4月21日周二 上午12:11写道:
@hongyi-zhao would you mind quickly checking if creating a pyproject.toml file at the root of the AiiDA repository with the content
[build-system]
requires = ["setuptools >= 40.6.0", "wheel", "numpy"]
build-backend = "setuptools.build_meta"
solves the issue with the pymatgen install?
As Carl Simon Adorf told that this method cannot solve the problem for
all python versions. Should you think I should test it now?
Regards
…
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
Hongyi Zhao <hongyi.zhao@gmail.com>
|
@csadorf That's interesting... I just tried creating a minimal package with #!/usr/bin/env python
import setuptools
from setuptools import find_packages
import numpy
assert numpy.__version__ >= "1.18"
if __name__ == "__main__":
setuptools.setup(
setup_requires=["numpy>=1.18"],
install_requires=["numpy<1.18"],
find_packages=find_packages()
) and
This works, in that it installs |
@greschd Maybe I don't fully remember what the actual issue was. We eventually resolved by explicitly updating the setuptools to the required version for Python 3.5: aiida-core/.github/workflows/test-install.yml Lines 136 to 138 in e33504c
So fewer problems with newer version of setuptools. This is the related PR: #3771 |
Yeah I don't know since when |
It seems to me that this problem is in fact resolved upstream, unless there are any objections, I suggest to close this PR and also the related issue. |
See here: https://github.com/atztogo/spglib/issues/93#issuecomment-615519305 for more information.