summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-10-08 15:51:05 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-10-13 15:04:20 +0000
commit8217c9d117dc8c2155acdfb0e340fed1e931a6aa (patch)
treed2edeb3bc96934d2f18ce87cfd1bae3e6986ab5d
parent95dcc83d767dfcaa659e1e721bbcd1a9371b9365 (diff)
downloaddefinitions-8217c9d117dc8c2155acdfb0e340fed1e931a6aa.tar.gz
Add cryptography chunk
This chunk needs to copy cffi into the build folder in order to compile, if this is not done an error like the following appears: error: Error: setup script specifies an absolute path: /usr/lib/python2.7/site-packages/cffi/__pycache__/_Cryptography_cffi_4ed9e37dx4000d087.c setup() arguments must *always* be /-separated paths relative to the setup.py directory, *never* absolute paths.
-rw-r--r--strata/openstack-services.morph1
-rw-r--r--strata/openstack-services/cryptography.morph8
2 files changed, 9 insertions, 0 deletions
diff --git a/strata/openstack-services.morph b/strata/openstack-services.morph
index abc6def6..92f64711 100644
--- a/strata/openstack-services.morph
+++ b/strata/openstack-services.morph
@@ -449,6 +449,7 @@ chunks:
repo: upstream:python-packages/xattr
- build-depends: [pbr, cffi]
name: cryptography
+ morph: strata/openstack-services/cryptography.morph
ref: master
repo: upstream:python-packages/cryptography
- build-depends: [jsonschema, python-json-patch, pbr]
diff --git a/strata/openstack-services/cryptography.morph b/strata/openstack-services/cryptography.morph
new file mode 100644
index 00000000..789d0077
--- /dev/null
+++ b/strata/openstack-services/cryptography.morph
@@ -0,0 +1,8 @@
+name: cryptography
+kind: chunk
+configure-commands:
+- cp -r /usr/lib/python2.7/site-packages/cffi .
+build-commands:
+- python setup.py build
+install-commands:
+- python setup.py install --prefix "$PREFIX" --root "$DESTDIR"