[Buildroot] [PATCH 2/5] python-pycrypto: new package

Ryan Barnett rjbarnet at rockwellcollins.com
Thu Oct 3 20:24:46 UTC 2013


Ryan Barnett <rjbarnet at rockwellcollins.com> wrote on 
10/03/2013 03:01:02 PM:

[...]

> @@ -0,0 +1,25 @@
> 
+################################################################################
> +#
> +# python-pycrypto
> +#
> 
+################################################################################
> +
> +PYTHON_PYCRYPTO_VERSION = 2.6
> +PYTHON_PYCRYPTO_SOURCE  = pycrypto-$(PYTHON_PYCRYPTO_VERSION).tar.gz
> +PYTHON_PYCRYPTO_SITE    = 
http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto
> +PYTHON_PYCRYPTO_LICENSE = Public Domain, Python 2.2 License 
(HMAC.py,setup.py)
> +
> +PYTHON_PYCRYPTO_LICENSE_FILES = COPYRIGHT LEGAL/copy/LICENSE.libtom \
> +      LEGAL/copy/LICENSE.orig LEGAL/copy/LICENSE.python-2.2
> +
> +PYTHON_PYCRYPTO_DEPENDENCIES = python
> +
> +define PYTHON_PYCRYPTO_BUILD_CMDS
> +   (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build --
> executable=/usr/bin/python)
> +endef

I realized now that I'm not actually compiling some of the shared library
objects for the target. I will fix this in my next version of this 
patchset.
I need to more closely follow what I did in python-pyasn with attempting
to use TARGET_CONFIG_OPT or python-distutilscross.

> +
> +define PYTHON_PYCRYPTO_INSTALL_TARGET_CMDS
> +   (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$
> (TARGET_DIR)/usr)
> +endef
> +
> +$(eval $(generic-package))

Thanks,
-Ryan



More information about the buildroot mailing list