-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Added recipe for kwant #1446
Added recipe for kwant #1446
Conversation
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipes/kwant:
|
@jakirkham could you give me advice on the following part:
Should I swap |
|
||
package: | ||
name: {{ name }} | ||
version: "1.2.2" [py3k] |
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.
The linter is choking here. You can lint a recipe locally with conda smithy recipe-lint
.
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
requirements: | ||
build: | ||
- python | ||
- gcc |
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 use toolchain
instead.
FWICT this is Python, C, and C++. However there is not Fortran that I can see. The following suggestions should be fine. Also does this link to a BLAS directly? If so, mimic our NumPy recipe w.r.t. OpenBLAS. |
There's no fortran code in Also the package on my channel doesn't work without |
Yes, |
@jakirkham you mean that I should add:
as I did here. However, in the numpy recipe I also see Another thing, why is OpenBLAS also added for Mac OSX, I thought this wasn't needed? |
|
||
about: | ||
home: http://kwant-project.org/ | ||
license: BSD 2-Clause |
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.
Could optionally add license_family: BSD
.
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.
Done below.
@jakirkham I have enumerated them all, and the current build requirements are all needed (I removed |
package: | ||
name: {{ name }} | ||
version: {{ py3k_ver }} # [py3k] | ||
version: {{ py2k_ver }} # [py2k] |
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.
Why do we have 2 different versions? Could we not just start with 1.1.2 and then drop Python 2.x support when upgrading or is there more going on here?
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.
Development for Python 2 stopped, however, bug fixes will still be applied. So the version number for both Python 2 and 3 will change, but not won't be the same.
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.
So the typical solution for this is to start with the oldest version that you wish to have in the feedstock (guessing 1.1.2). Then update master
to the latest versions (and any other relevant ones inbetween on the way). Then the old support version (guessing 1.1.x) can be a new branch say 1.1
and will just track patch releases for that.
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.
Changed to only Python 2 in f32eb41.
- nose | ||
- tinyarray | ||
- libgfortran | ||
- libgcc |
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.
I suspect we only need one of these. Maybe just libgfortran
, but please let me know if there is more going on (e.g. is there C++?).
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.
They are both needed I think, see this build of this commit 471c711
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.
I see. So it does need C++.
Please add yum_requirements.txt
with devtoolset-2-gcc-gfortran
. Also please add a selector to use gcc
on OS X only. Then please add export LIBRARY_PATH="${PREFIX}/lib"
to build.sh
. Finally please drop libgcc
, but keep/add libgfortran
(in build
and run
).
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.
This strategy is used for scipy
, hdf5
, and other C/C++/Fortran libraries of note.
xref: conda-forge/scipy-feedstock#2
xref: conda-forge/scipy-feedstock#3
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.
I did what you suggested, but still getting this error: ImportError: /usr/lib64/libstdc++.so.6: version
GLIBCXX_3.4.15' not found (required by /opt/conda/envs/_test/lib/python2.7/site-packages/kwant/graph/slicer.so). I have added
export LD_LIBRARY_PATH="${PREFIX}/lib"to
buid.sh`.
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.
Adding LD_LIBRARY_PATH
alone didn't help, still the same error message.
|
||
build: | ||
skip: true # [win] | ||
skip: true # [py3k] |
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.
These can be combined skip: true # [win or py3k]
.
Also is it that this version is Python 2 only or is it that this version is the last one that supports Python 2, but also supports Python 3? Nevermind answered my own question.
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.
Fixed in 82ea10c. There is no version that combines both Python 2 and 3 simultaneously.
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipes/kwant:
|
- blas 1.1 {{ variant }} | ||
- openblas 0.2.18|0.2.18.* | ||
- mumps | ||
- numpy |
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.
Is it linking to numpy
? If so, this needs to be numpy x.x
.
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.
Yes, it is linking to numpy
. Fixed in e2bb0c2.
- blas 1.1 {{ variant }} | ||
- openblas 0.2.18|0.2.18.* | ||
- mumps | ||
- numpy |
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.
Same as above.
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.
Fixed in e2bb0c2
Also please add |
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
So I think you have CircleCI enabled on your fork of staged-recipes. Could you please disable it? Seems to be getting in the way of running it here at staged-recipes. |
I stopped it :-) |
Toggling to get CircleCI to restart on staged-recipes ( hopefully 🍀 ). |
Seems to have worked. 😄 |
And also the builds are passing 👍 |
Thanks @basnijholt . |
Depends on the following pull requests:
tinyarray
Add recipe for tinyarray #1444metis
Create recipe for metis #1442mumps
Add recipe for mumps #1445scotch
Added recipe for scotch #1427