From 77506b0c69d446255079b82560cc1da631c26976 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 25 Jun 2016 10:19:57 +0530 Subject: [PATCH 1/5] gmpy2 --- recipes/gmpy2/meta.yaml | 52 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 recipes/gmpy2/meta.yaml diff --git a/recipes/gmpy2/meta.yaml b/recipes/gmpy2/meta.yaml new file mode 100644 index 0000000000000..d1f20d0570752 --- /dev/null +++ b/recipes/gmpy2/meta.yaml @@ -0,0 +1,52 @@ +{% set version = "2.0.7" %} + +package: + name: gmpy2 + version: {{ version }} + +source: + fn: gmpy2-{{version}}.zip + url: https://pypi.io/packages/source/g/gmpy2/gmpy2-2.0.7.zip + md5: b5aada3ee5afb316ea94604f45192054 + +build: + number: 0 + skip: true # [win and not py35] + features: + - vc14 # [win and py35] + script: + - python setup.py install --shared=$PREFIX # [unix] + - python setup.py install --shared=%LIBRARY_PREFIX% # [win] + +requirements: + build: + - toolchain # [unix] + - gmp # [unix] + - mpir # [win] + - mpfr + - mpc + - python + run: + - gmp # [unix] + - mpir # [win] + - mpfr + - mpc + - python + +test: + requires: + - python 2.7.* # [unix and py27] + - python 3.4.* # [unix and py34] + - python 3.5.* # [py35] + imports: + - gmpy2 + +about: + home: https://pypi.python.org/pypi/gmpy2 + license: LGPL 3 + summary: 'GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x' + +extra: + recipe-maintainers: + - isuruf + From f5a8b702b5a36ff15d7b345b106a314914814cb4 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 30 Jun 2016 09:04:29 +0530 Subject: [PATCH 2/5] Update meta.yaml --- recipes/gmpy2/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/gmpy2/meta.yaml b/recipes/gmpy2/meta.yaml index d1f20d0570752..b7ac42c57dfa7 100644 --- a/recipes/gmpy2/meta.yaml +++ b/recipes/gmpy2/meta.yaml @@ -15,8 +15,8 @@ build: features: - vc14 # [win and py35] script: - - python setup.py install --shared=$PREFIX # [unix] - - python setup.py install --shared=%LIBRARY_PREFIX% # [win] + - python setup.py install --shared=$PREFIX # [unix] + - python setup.py build_ext -f -Ddir=%LIBRARY_PREFIX% install # [win] requirements: build: From 005425e125fcd905dd8cc389c46d001e0186bae2 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 30 Jun 2016 09:25:44 +0530 Subject: [PATCH 3/5] Set MSC_USE_DLL --- recipes/gmpy2/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/gmpy2/meta.yaml b/recipes/gmpy2/meta.yaml index b7ac42c57dfa7..3b2a06e6b1142 100644 --- a/recipes/gmpy2/meta.yaml +++ b/recipes/gmpy2/meta.yaml @@ -15,8 +15,8 @@ build: features: - vc14 # [win and py35] script: - - python setup.py install --shared=$PREFIX # [unix] - - python setup.py build_ext -f -Ddir=%LIBRARY_PREFIX% install # [win] + - python setup.py install --shared=$PREFIX # [unix] + - python setup.py build_ext -f --shared=%LIBRARY_PREFIX% -DMSC_USE_DLL=1 install # [win] requirements: build: From ea1e28b237e54c1a580203d2416f9cd76c4569f2 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 2 Jul 2016 22:36:27 +0530 Subject: [PATCH 4/5] Minor edits --- recipes/gmpy2/meta.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/recipes/gmpy2/meta.yaml b/recipes/gmpy2/meta.yaml index 3b2a06e6b1142..fea501216f7fb 100644 --- a/recipes/gmpy2/meta.yaml +++ b/recipes/gmpy2/meta.yaml @@ -6,7 +6,7 @@ package: source: fn: gmpy2-{{version}}.zip - url: https://pypi.io/packages/source/g/gmpy2/gmpy2-2.0.7.zip + url: https://pypi.io/packages/source/g/gmpy2/gmpy2-{{ version }}.zip md5: b5aada3ee5afb316ea94604f45192054 build: @@ -35,8 +35,8 @@ requirements: test: requires: - - python 2.7.* # [unix and py27] - - python 3.4.* # [unix and py34] + - python 2.7.* # [py27] + - python 3.4.* # [py34] - python 3.5.* # [py35] imports: - gmpy2 @@ -49,4 +49,3 @@ about: extra: recipe-maintainers: - isuruf - From 868a9b8d48ca2d5b349f151c967dbf33209b086a Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Sat, 2 Jul 2016 23:14:49 +0530 Subject: [PATCH 5/5] remove selector for toolchain --- recipes/gmpy2/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/gmpy2/meta.yaml b/recipes/gmpy2/meta.yaml index fea501216f7fb..05d73225b569d 100644 --- a/recipes/gmpy2/meta.yaml +++ b/recipes/gmpy2/meta.yaml @@ -20,7 +20,7 @@ build: requirements: build: - - toolchain # [unix] + - toolchain - gmp # [unix] - mpir # [win] - mpfr