From 8217c9d117dc8c2155acdfb0e340fed1e931a6aa Mon Sep 17 00:00:00 2001 From: Francisco Redondo Marchena Date: Wed, 8 Oct 2014 15:51:05 +0000 Subject: 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. --- strata/openstack-services.morph | 1 + strata/openstack-services/cryptography.morph | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 strata/openstack-services/cryptography.morph 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" -- cgit v1.2.1