]> code.ossystems Code Review - openembedded-core.git/commitdiff
python: time.tzset missing
authorArmin Kuster <akuster808@gmail.com>
Fri, 8 Mar 2019 14:37:26 +0000 (06:37 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Mar 2019 14:41:20 +0000 (14:41 +0000)
import time
time.tzset()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'time' has no attribute 'tzset'

enable tzset in both python versions

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3_3.7.2.bb
meta/recipes-devtools/python/python_2.7.15.bb

index 9626ee546b27cdd8878ee0394f78f5742eeed47c..4d10986f3b7bbbc1af206c47ee26b4094eb55d37 100644 (file)
@@ -65,6 +65,7 @@ EXTRANATIVEPATH += "python3-native"
 CACHED_CONFIGUREVARS = " \
                 ac_cv_file__dev_ptmx=yes \
                 ac_cv_file__dev_ptc=no \
+                ac_cv_working_tzset=yes \
 "
 
 PACKAGECONFIG_class-target ??= "readline ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'pgo', '', d)}"
index 8df1dfd1ba65de99b5b3fe45f64630e2207eec72..3e1af4baf63ff258b9f717070f1aab3da4c40079 100644 (file)
@@ -42,7 +42,7 @@ inherit autotools multilib_header python-dir pythonnative ptest
 
 CONFIGUREOPTS += " --with-system-ffi "
 
-EXTRA_OECONF += "ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no"
+EXTRA_OECONF += "ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no ac_cv_working_tzset=yes"
 
 PACKAGECONFIG ??= "bdb"
 PACKAGECONFIG[bdb] = ",,db"