Commit Graph

3 Commits

Author SHA1 Message Date
Leon Anavi
80efddfabb python3-pycrypto: Consolidate in a single file
Consolidate inc and bb files into a single bb file.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-28 20:49:15 -07:00
Ming Liu
bd85cf0642 python3-pycrypto: drop time.clock
The use of time.clock() is deprecated in python 3.8, change to use
time.process_time().

Reference:
https://docs.python.org/3.3/library/time.html#time.clock

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-25 12:44:25 -08:00
Ricardo Silva
c06be20b24 pycrypto: Add recipe to have support on python3
The pycrypto module sources can be used for both python2 and python3,
but a recipe for python3 was missing, so add it.

Additionally, since the sources (and thus the patches) are shared
between both versions, move the SRC_URI (same on both recipes) to the
common 'python-pycrypto.inc' file, to avoid duplication.

Also, to use the same patch files for both python2 and python3 without
having to duplicate them over 2 folders, change 'python-pycrypto.inc' so
that FILESEXTRAPATHS is prepended with the 'python-pycrypto' local dir
for both versions instead of having that dir named after the package
name '${PN}'.

The python3 recipe is basically the same as for python2, but using
distutils3 instead.

Signed-off-by: Ricardo Silva <rjpdasilva@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-01-16 21:38:09 -08:00