We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 081cf7d + dc14c3d commit 888ad8aCopy full SHA for 888ad8a
1 file changed
pkgs/gmpy.yaml
@@ -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