Skip to content
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

gmpy2 #876

Merged
merged 5 commits into from
Jul 2, 2016
Merged

gmpy2 #876

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions recipes/gmpy2/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{% set version = "2.0.7" %}

package:
name: gmpy2
version: {{ version }}

source:
fn: gmpy2-{{version}}.zip
url: https://pypi.io/packages/source/g/gmpy2/gmpy2-{{ version }}.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 build_ext -f --shared=%LIBRARY_PREFIX% -DMSC_USE_DLL=1 install # [win]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More for my curiosity than anything else. What does MSC_USE_DLL do?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Windows, when using a function from a dll you have to explicitly mark it __declspec(dllimport) in the header. This macro would turn on that feature. Otherwise it defaults to nothing, which means that the library implementing the function should be linked statically.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, is this handled by gmpy2 directly, by Python, or is it passed through to the compiler?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's passed to the compiler by distutils

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for explaining this.


requirements:
build:
- toolchain
- gmp # [unix]
- mpir # [win]
- mpfr
- mpc
- python
run:
- gmp # [unix]
- mpir # [win]
- mpfr
- mpc
- python

test:
requires:
- python 2.7.* # [py27]
- python 3.4.* # [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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be done here or in the feedstock. Feel free to add @asmeurer as he has explicitly stated he would be interested in helping maintain sympy dependencies and this is one IIRC.

I'm ok with being here. Though I may not be as active just FYI.