-
-
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
Merged
Merged
Added recipe for kwant #1446
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
da9a736
Added recipe for kwant
basnijholt 4892d0b
Add newline to meta.yaml
basnijholt 88c4872
Change in meta.yaml, fix linter issue, thanks to @ocefpaf
basnijholt 923fa2a
Change BSD to BSD 2-Clause
basnijholt 9d76e77
Correct urls
basnijholt 52272b3
Specify version for Python 2 and 3
basnijholt 5f9b71f
gcc -> toolchain and drop libgcc
basnijholt 812837a
Add `features: - blas_openblas`
basnijholt 03ff686
Fix sha256
basnijholt 4b25da3
sed the prefix
basnijholt aeb7251
Add openblas for OSX
basnijholt 1507550
change to mumps and fix openblas pinning
basnijholt 25887d2
remove accidental dot after openblas pinning
basnijholt 93ade51
Add `extra_link_args = -Wl,-rpath,PREFIX/lib` to OSX conf
basnijholt a898711
Support BLAS
basnijholt 456e593
Add dev-url
basnijholt 6036a83
Remove empty line
basnijholt d003d31
remove extra newline and add https:// to url
basnijholt 52f4754
Build number to 200
basnijholt 8ddf9e8
Correct sha256 for py2k
basnijholt 471c711
add gcc and libgfortran
basnijholt b4cd57c
Add libgcc
basnijholt ffdb79c
Retrigger build because of issues with CircleCI
basnijholt 0e427a9
Add license_family: BSD and remove matplotlib from build req
basnijholt 5d07dc2
add yum_requirements.txt
basnijholt 1fa284c
drop libgcc
basnijholt c1d6b89
export LIBRARY_PATH in build.sh
basnijholt 1ba470d
add libgfortran in build requirements
basnijholt f32eb41
Only Python 2.7
basnijholt d66bf7a
add export LD_LIBRARY_PATH to build.sh
basnijholt a1fa071
build req: gcc only for osx and libgfortran only linux
basnijholt 82ea10c
combine skip: true # [win or py3k]
basnijholt e2bb0c2
change numpy -> numpy x.x
basnijholt 237610b
fix style error [skip appveyor]
basnijholt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/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 | ||
sed -i -e "s:PREFIX:$PREFIX:g" build.conf | ||
|
||
export LIBRARY_PATH="${PREFIX}/lib" | ||
export LD_LIBRARY_PATH="${PREFIX}/lib" | ||
|
||
$PYTHON setup.py build | ||
$PYTHON setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{% set name = "kwant" %} | ||
{% set version = "1.1.2" %} | ||
{% set variant = "openblas" %} | ||
|
||
package: | ||
name: {{ name }} | ||
version: {{ version }} | ||
|
||
source: | ||
fn: v{{ version }}.tar.gz | ||
url: https://gitlab.kwant-project.org/kwant/kwant/repository/archive.tar.gz?ref=v{{ version }} | ||
sha256: a47544a8416b19a56da3d511610c9e09ed3bf84f66461d9f95f0f6fefebd0179 | ||
|
||
build: | ||
skip: true # [win or py3k] | ||
number: 200 | ||
features: | ||
- blas_{{ variant }} | ||
|
||
requirements: | ||
build: | ||
- python | ||
- toolchain | ||
- gcc # [osx] | ||
- blas 1.1 {{ variant }} | ||
- openblas 0.2.18|0.2.18.* | ||
- mumps | ||
- numpy x.x | ||
- scipy | ||
- cython | ||
- nose | ||
- tinyarray | ||
- libgfortran # [linux] | ||
|
||
run: | ||
- python | ||
- blas 1.1 {{ variant }} | ||
- openblas 0.2.18|0.2.18.* | ||
- mumps | ||
- numpy x.x | ||
- matplotlib | ||
- scipy | ||
- cython | ||
- nose | ||
- tinyarray | ||
- libgfortran | ||
|
||
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 2-Clause | ||
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. Could optionally 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. Done below. |
||
license_file: LICENSE.rst | ||
license_family: BSD | ||
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/ | ||
dev_url: https://gitlab.kwant-project.org/kwant/kwant/ | ||
|
||
extra: | ||
recipe-maintainers: | ||
- basnijholt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
devtoolset-2-gcc-gfortran |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are all of these needed at build time or can some of them be dropped (e.g.
matplotlib
,scipy
, etc.)?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 removed
matplotlib
in 0e427a9There 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.
Yeah the comment moved. Seems like some GitHub bug with diffs. Thanks for doing that though.