Skip to content

Commit 888ad8a

Browse files
committed
Merge pull request #625 from hashdist/gmpy
Add the gmpy package
2 parents 081cf7d + dc14c3d commit 888ad8a

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

pkgs/gmpy.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
extends: [distutils_package, libflags]
2+
3+
dependencies:
4+
build: [gmp, mpfr, mpc]
5+
6+
sources:
7+
- key: zip:afhl7oib7xq5qi57u265ocv5pgw76nwa
8+
url: https://pypi.python.org/packages/source/g/gmpy2/gmpy2-2.0.5.zip
9+
10+
build_stages:
11+
- name: install
12+
mode: replace
13+
after: setup_dirs
14+
handler: bash
15+
bash: |
16+
# The gmpy's setup.py overrides --prefix to specify where dependencies are
17+
# found (!), so we have to use --home instead, but --home installs into
18+
# ${ARTIFACT}/lib/python, so we then have to move the installed files into
19+
# the proper location by hand.
20+
${PYTHON} setup.py install --home=${ARTIFACT}
21+
mv ${ARTIFACT}/lib/python/* ${ARTIFACT}/{{python_site_packages_rel}}
22+
rm -r ${ARTIFACT}/lib/python

0 commit comments

Comments
 (0)