-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Changes from 2 commits
da9a736
4892d0b
88c4872
923fa2a
9d76e77
52272b3
5f9b71f
812837a
03ff686
4b25da3
aeb7251
1507550
25887d2
93ade51
a898711
456e593
6036a83
d003d31
52f4754
8ddf9e8
471c711
b4cd57c
ffdb79c
0e427a9
5d07dc2
1fa284c
c1d6b89
1ba470d
f32eb41
d66bf7a
a1fa071
82ea10c
e2bb0c2
237610b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
platform='unknown' | ||
unamestr=`uname` | ||
if [[ "$unamestr" == 'Darwin' ]]; then | ||
cp $RECIPE_DIR/build_mac.conf build.conf | ||
else | ||
cp $RECIPE_DIR/build_linux.conf build.conf | ||
fi | ||
$PYTHON setup.py build | ||
$PYTHON setup.py install |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[lapack] | ||
library_dirs = $(PREFIX)/lib | ||
libraries = openblas gfortran | ||
extra_link_args = -Wl,-rpath=$(PREFIX)/lib | ||
[mumps] | ||
include_dirs = $(PREFIX)/include | ||
library_dirs = $(PREFIX)/lib | ||
libraries = zmumps mumps_common pord metis esmumps scotch scotcherr mpiseq gfortran | ||
extra_link_args = -Wl,-rpath=$(PREFIX)/lib |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[lapack] | ||
libraries = | ||
extra_link_args = -Wl,-framework -Wl,Accelerate | ||
[mumps] | ||
include_dirs = $(PREFIX)/include | ||
library_dirs = $(PREFIX)/lib | ||
libraries = zmumps mumps_common pord metis esmumps scotch scotcherr mpiseq gfortran |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{% set name = "kwant" %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: "1.2.2" [py3k] | ||
version: "1.1.2" [py27] | ||
|
||
source: | ||
git_url: https://gitlab.kwant-project.org/kwant/kwant.git | ||
git_tag: v1.2.2 [py3k] | ||
git_tag: v1.1.2 [py27] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @basnijholt change the top of your recipe to {% set name = "kwant" %}
{% set py3k_ver = "1.2.2" %}
{% set py2k_ver = "1.1.2" %}
package:
name: {{ name }}
version: {{ py3k_ver }} # [py3k]
version: {{ py2k_ver }} # [py2k]
source:
fn: v{{ version }}.tar.gz
url: https://gitlab.kwant-project.org/kwant/kwant/archive/v{{ version }}.tar.gz
sha256: 8c20230f266622e5fa4c75fd3b1e8018d9a99643e71b86a7e91cb7b6902d8620 # [py3k]
sha256: 3229009580e33e58f5cfb8405c44f8146b89b621b6ebe599166ef9add8ec9755 # [py2k] That also fixed the linter issue locally for me. BTW do the different version reflect the Python versions? If so maybe adding a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks a lot! This fixed the issue :) |
||
|
||
build: | ||
skip: true # [win] | ||
number: 0 | ||
binary_relocation: true | ||
|
||
requirements: | ||
build: | ||
- python | ||
- gcc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use |
||
- openblas # [linux] | ||
- mumps_seq | ||
- numpy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it linking to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it is linking to |
||
- matplotlib | ||
- scipy | ||
- cython | ||
- nose | ||
- tinyarray | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are all of these needed at build time or can some of them be dropped (e.g. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah the comment moved. Seems like some GitHub bug with diffs. Thanks for doing that though. |
||
|
||
run: | ||
- python | ||
- openblas # [linux] | ||
- mumps_seq | ||
- numpy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in e2bb0c2 |
||
- matplotlib | ||
- scipy | ||
- cython | ||
- nose | ||
- tinyarray | ||
- libgcc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please drop this as it is unneeded. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect we only need one of these. Maybe just There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. I see. So it does need C++. Please add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This strategy is used for xref: conda-forge/scipy-feedstock#2 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did what you suggested, but still getting this error: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adding |
||
- libgfortran # [linux] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please drop this as it should also be unneeded. |
||
|
||
test: | ||
imports: | ||
- kwant | ||
- kwant.graph | ||
- kwant.graph.tests | ||
- kwant.linalg | ||
- kwant.linalg.tests | ||
- kwant.physics | ||
- kwant.physics.tests | ||
- kwant.solvers | ||
- kwant.solvers.tests | ||
- kwant.tests | ||
|
||
about: | ||
home: http://kwant-project.org/ | ||
license: BSD | ||
license_file: LICENSE.rst | ||
summary: 'Package for numerical quantum transport calculations.' | ||
description: | | ||
Kwant is a free (open source) Python package for numerical calculations on | ||
tight-binding models with a strong focus on quantum transport. It is designed to | ||
be flexible and easy to use. Thanks to the use of innovative algorithms, Kwant | ||
is often faster than other available codes, even those entirely written in the | ||
low level FORTRAN and C/C++ languages. | ||
doc_url: https://kwant-project.org/doc/1/ | ||
|
||
extra: | ||
recipe-maintainers: | ||
- basnijholt | ||
|
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
.